我们发现我们的内部证书签署的 Swift应用程序无法在iOS9上运行,而在iOS8上正常运行.我们已经信任开发人员的设置 – >一般 – >配置文件,但是当我们尝试启动应用程序时,它会卡在启动屏幕上,然后退出.

我们从日志中没有任何线索.它只告诉它在20时之后没能启动.

我怀疑这是一个与签约有关的问题.因为当我使用AdHoc证书签署应用程序时,在iOS9上运行没有问题.

没有人知道发生了什么吗?

似乎与这些问题有关

> Ad-Hoc distributed application failed to launch in time
> https://devforums.apple.com/thread/266111

**Device Logs**

Incident Identifier: B4564227-5CC9-447B-9A52-BEC5EB36EE44
CrashReporter Key:   9ec38d809cfa493300f95e440530ad11ac05e5d7
Hardware Model:      iPad4,1
Process:             xxxxxxx xxxxxxxx [2345]
Path:                /var/mobile/Containers/Bundle/Application/02F4CDFC-83E8-4474-9314-4848354A8FC0/xxxxxxx xxxxxxx.app/xxxxxx xxxxxxx
Identifier:          com.xxxxx.xxxxx.xxxxxxx
Version:             5097 (4.0)
Code Type:           ARM-64 (Native)
Parent Process:      launchd [1]

Date/Time:           2015-09-23 10:19:41.41 +0200
Launch Time:         2015-09-23 10:19:16.16 +0200
OS Version:          iOS 9.0 (13A344)
Report Version:      105

Exception Type:  00000020
Exception Codes: 0x000000008badf00d
Exception Note:  SIMULATED (this is NOT a crash)
Highlighted by Thread:  0

Application Specific information:
com.xxxxxxx.enterprise.xxxxxxx Failed to launch after 20.00s (launchIntent: foreground-interactive)

Elapsed total cpu time (seconds): 22.260 (user 22.260,system 0.000),56% cpu 
Elapsed application cpu time (seconds): 0.002,0% cpu

Filtered syslog:
None found

Thread 0:
0   dyld                            0x0000000120054490 __fcntl + 8
1   dyld                            0x0000000120053e94 fcntl + 128
2   dyld                            0x0000000120042cec ImageLoaderMachO::loadCodeSignature(linkedit_data_command const*,int,unsigned long long,ImageLoader::LinkContext const&) + 68
3   dyld                            0x0000000120045dd0 ImageLoaderMachOCompressed::instantiateFromFile(char const*,unsigned char const*,unsigned long,stat const&,unsigned int,linkedit_data_command const*,encryption_info_command const*,ImageLoader::LinkContext const&) + 228
4   dyld                            0x0000000120041ccc ImageLoaderMachO::instantiateFromFile(char const*,ImageLoader::LinkContext const&) + 268
5   dyld                            0x0000000120033800 dyld::loadPhase6(int,char const*,dyld::LoadContext const&) + 396
6   dyld                            0x0000000120037d6c dyld::loadPhase5stat(char const*,dyld::LoadContext const&,stat*,int*,bool*,std::__1::vector<char const*,std::__1::allocator<char const*> >*) + 172
7   dyld                            0x0000000120037c38 dyld::loadPhase5(char const*,std::__1::allocator<char const*> >*) + 736
8   dyld                            0x0000000120037928 dyld::loadPhase4(char const*,std::__1::allocator<char const*> >*) + 192
9   dyld                            0x00000001200373e0 dyld::loadPhase3(char const*,std::__1::allocator<char const*> >*) + 696
10  dyld                            0x0000000120036edc dyld::loadPhase1(char const*,std::__1::allocator<char const*> >*) + 160
11  dyld                            0x0000000120033314 dyld::loadPhase0(char const*,std::__1::allocator<char const*> >*) + 236
12  dyld                            0x0000000120032fdc dyld::load(char const*,dyld::LoadContext const&) + 160
13  dyld                            0x0000000120037ecc dyld::libraryLocator(char const*,bool,ImageLoader::RPathChain const*) + 52
14  dyld                            0x000000012003fd34 ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&,ImageLoader::RPathChain const&,char const*) + 332
15  dyld                            0x000000012003f1d8 ImageLoader::link(ImageLoader::LinkContext const&,ImageLoader::RPathChain const&) + 124
16  dyld                            0x0000000120034c44 dyld::link(ImageLoader*,ImageLoader::RPathChain const&) + 176
17  dyld                            0x0000000120035b64 dyld::_main(macho_header const*,char const**,unsigned long*) + 2408
18  dyld                            0x0000000120031044 _dyld_start + 68

无线程状态(寄存器信息)可用

二进制图像:

0x1000d8000 - 0x100543fff xxxxxxxx xxxxxxxxx arm64  <411a29d1e9843b17802cda346d9d7d5f> /var/mobile/Containers/Bundle/Application/02F4CDFC-83E8-4474-9314-4848354A8FC0/xxxxxx xxxxxxx.app/xxxxxxxx xxxxxxxx
0x100750000 - 0x100963fff libswiftCore.dylib arm64  <1c8fc0a4195f3207ac97389aafa69c65> /var/mobile/Containers/Bundle/Application/02F4CDFC-83E8-4474-9314-4848354A8FC0/xxxxx xxxxxx.app/Frameworks/libswiftCore.dylib
0x1014d0000 - 0x1014d7fff libswiftCoreData.dylib arm64  <b751a5bac05c3293aa1c6b01d78d6bf7> /var/mobile/Containers/Bundle/Application/02F4CDFC-83E8-4474-9314-4848354A8FC0/xxxxxxxxx xxxxxxx.app/Frameworks/libswiftCoreData.dylib
0x120030000 - 0x12005bfff dyld arm64  <1b945967d665331dbf2600249e46660a> /usr/lib/dyld

那些是我们启动应用程序时的实时日志

Sep 24 10:23:22 iPad SpringBoard[53] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:25 iPad SpringBoard[53] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:26 iPad amfid[1091] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:39 iPad kernel[0] <Notice>: xpcproxy[1186] Container: /private/var/mobile/Containers/Data/Application/02AF80DC-26F3-4AAE-AD90-A4F148E574AE (sandBox)
Sep 24 10:23:39 iPad amfid[1091] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace,please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace,please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace,please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:39 iPad SpringBoard[53] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace,please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 24 10:23:52 iPad syncdefaultsd[1127] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "enabled" on <APSConnection: 0x15d50e780>
Sep 24 10:23:53 iPad amfid[1091] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:58 iPad amfid[1091] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:23:59 iPad SpringBoard[53] <Warning>: Forcing crash report of <FBApplicationProcess: 0x128ef74e0; Schneider Elect; pid: 1186> (reason: 1,description: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx Failed to launch after 20.00s (launchIntent: foreground-interactive))
Sep 24 10:23:59 iPad kernel[0] <Notice>: int _validateCodeDirectoryHashInDaemon(const char *,off_t,uint8_t *,int *): verify_code_directory returned 0x10004005
Sep 24 10:23:59 iPad SpringBoard[53] <Warning>: Finished crash reporting.
Sep 24 10:23:59 iPad com.apple.xpc.launchd[1] (UIKitApplication:com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx[0x9388][1186]) <Notice>: Service exited due to signal: Killed: 9
Sep 24 10:23:59 iPad ReportCrash[1187] <Warning>: saved type '109_Schneider Electric' report (2 of max 25) as /var/mobile/Library/Logs/CrashReporter/Schneider Electric_2015-09-24-102359_iPad.ips
Sep 24 10:23:59 iPad SpringBoard[53] <Warning>: Application 'UIKitApplication:com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx[0x9388]' exited abnormally via signal.
Sep 24 10:24:00 iPad searchd[156] <Warning>: ====^^^^ DuetExpert missing requested data,people:0 applicationDeepLinks:1 applications:0 requests:36 missingallDataRequests:0
Sep 24 10:24:04 iPad amfid[1091] <Error>: mig_source_handler: dispatch_mig_server returned 268435459

当我们从HockeyApp安装应用程序时,我们有以下日志

Sep 24 10:26:03 iPad itunesstored[103] <Warning>: [Download]: Adding download(s): -7184518095014445338
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: LaunchServices: installing placeholder for <LSApplicationProxy: 0x14e0a5530> com.xxxxxxx.enterprise.xxxxxxx <(null) *Not found in database*>
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e12f000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-xxxxxxxxxx.app" type Placeholder requested by itunesstored (pid 103)
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx; Version=5106,ShortVersion=(null)>
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx at /private/var/mobile/Containers/Data/Application/28FBA6E7-DCD8-49B2-BA05-EFD951531A64
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx at /private/var/mobile/Containers/Bundle/Application/6631F035-AF52-41CB-8299-7E781971C65E
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s,Verifying: 0.00s; Overall: 0.09s
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14e0b0aa0> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/6631F035-AF52-41CB-8299-7E781971C65E/-7184518095014445338.app> withPhase:3
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx.InstallingPlaceholder - <nsprogress: 0x14ce3cb20> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100   called,removing progress from cache
Sep 24 10:26:03 iPad ondemandd[180] <Error>: Application with ID: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx was installed,but it doesn't appear to have a bundle URL,we are taking no action on this.
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: [Download]: Starting task: 7 with priority: 300 for download: -xxxxxxxxxxxxx bundleIdentifier: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx in session: com.apple.itunesstored.default
Sep 24 10:26:03 iPad itunesstored[103] <Warning>: LaunchServices: updating placeholder for <LSApplicationProxy: 0x14e030650> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/6631F035-AF52-41CB-8299-7E781971C65E/-7184518095014445338.app> with icons
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e087000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-7184518095014445338.app" type Placeholder requested by itunesstored (pid 103)
Sep 24 10:26:03 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx; Version=5106,ShortVersion=(null)>
Sep 24 10:26:04 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx is Now at /private/var/mobile/Containers/Data/Application/9D5532A1-DAA6-432D-9F94-7A238714CC81
Sep 24 10:26:04 iPad installd[46] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx at /private/var/mobile/Containers/Bundle/Application/0E91022C-B4DB-42E2-9BC5-50683613AA1E
Sep 24 10:26:04 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s,Verifying: 0.01s; Overall: 0.16s
Sep 24 10:26:04 iPad ondemandd[180] <Error>: Application with ID: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx was installed,we are taking no action on this.
Sep 24 10:26:04 iPad itunesstored[103] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14e04c7f0> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/0E91022C-B4DB-42E2-9BC5-50683613AA1E/-7184518095014445338.app> withPhase:0
Sep 24 10:26:04 iPad lsd[80] <Warning>: LaunchServices: Updating installPhase for parent <nsprogress: 0x14dd52860> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100   to 0
Sep 24 10:26:04 iPad lockdownd[66] <Error>: CFStringGetCString error in locklog
Sep 24 10:26:08 iPad kernel[0] <Notice>: AppleARMPMUCharger: limiting USB input current to 1600 mA (measured 1164 mA)
Sep 24 10:26:08 iPad kernel[0] <Notice>: AppleARMPMUCharger: limiting USB input current to 1500 mA (measured 1160 mA)
Sep 24 10:26:08 iPad kernel[0] <Notice>: AppleARMPMUCharger: limiting USB input current to 1400 mA (measured 1141 mA)
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: [Download]: Download task did finish: 7 for download: -7184518095014445338
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: [ApplicationWorkspace] Installing download: -7184518095014445338 with step(s): Install
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: [ApplicationWorkspace]: Installing software package with bundleID: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx: bundLeversion: 5106 path: /var/mobile/Media/Downloads/-7184518095014445338/2540926088173953799
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: [ApplicationWorkspace]: Bundle validated for bundleIdentifier: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx success: 1
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x14e06bf60> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/0E91022C-B4DB-42E2-9BC5-50683613AA1E/-7184518095014445338.app>
Sep 24 10:26:17 iPad itunesstored[103] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14e06bf60> com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/0E91022C-B4DB-42E2-9BC5-50683613AA1E/-7184518095014445338.app> withPhase:1
Sep 24 10:26:17 iPad lsd[80] <Warning>: LaunchServices: Updating installPhase for parent <nsprogress: 0x14dd52860> : Parent: 0x0 / Fraction completed: 0.5800 / Completed: 58 of 100   to 1
Sep 24 10:26:17 iPad installd[46] <Notice>: 0x16e087000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/Downloads/-7184518095014445338/2540926088173953799" type Customer requested by itunesstored (pid 103)
Sep 24 10:26:20 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx; Version=5106,ShortVersion=4.0>
Sep 24 10:26:20 iPad installd[46] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 24 10:26:20 iPad profiled[132] <Notice>: (Note ) MC: Provisioning profiles changed
Sep 24 10:26:20 iPad profiled[132] <Notice>: (Note ) MC: Updating MIS trust...
Sep 24 10:26:29 iPad online-auth-agent[313] <Error>:  SecTrustEvaluate  [leaf AnchorTrusted]
Sep 24 10:26:29 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for com.xxxxxxx.enterprise.xxxxxxxx is Now at /private/var/mobile/Containers/Data/Application/CCFF5229-5605-474A-8C2C-5DFA0CA7570C
Sep 24 10:26:29 iPad installd[46] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx at /private/var/mobile/Containers/Bundle/Application/552B30AE-9DD1-4125-8262-3C4A85F2A174
Sep 24 10:26:29 iPad installd[46] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 2.71s; Waiting: 0.00s; Preflight/Patch: 0.02s,Verifying: 9.36s; Overall: 12.21s
Sep 24 10:26:29 iPad lsd[80] <Warning>: LaunchServices: Updating identifier store
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx.Installing - <nsprogress: 0x14e083bd0> : Parent: 0x0 / Fraction completed: 1.0000 / Completed: 100 of 100   called,removing progress from cache
Sep 24 10:26:29 iPad lsd[80] <Warning>: LaunchServices: installation ended for app com.xxxxxxxxx.enterprise.xxxxxxxxxxx
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: [ApplicationWorkspace] Install complete for download: -7184518095014445338 result: Success
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: [ApplicationWorkspace]: Updating placeholder for download: -7184518095014445338 bundleIdentifier: com.xxxxxxxx.enterprise.xxxxxxxxxxxxxx
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.xxxxxxxxx.enterprise.xxxxxxxxxx.Loading - <nsprogress: 0x14e0bdb30> : Parent: 0x0 / Fraction completed: 1.0000 / Completed: 1 of 1   called,removing progress from cache
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:fractionCompleted Could not find parent progress for com.xxxxxxxxxx.enterprise.xxxxxxxxxxx,it may have been removed
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:fractionCompleted Could not find parent progress for com.xxxxxxxxxx.enterprise.xxxxxxxxxxx,it may have been removed
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:userInfo.installState Could not find parent progress for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx,it may have been removed
Sep 24 10:26:29 iPad lsd[80] <Warning>: LSInstallProgress: In observeValueForKeyPath:fractionCompleted Could not find parent progress for com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx,it may have been removed
Sep 24 10:26:29 iPad itunesstored[103] <Warning>: [ApplicationWorkspace]: Placeholder updated for download: -7184518095014445338 bundleIdentifier: com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx success: 1
Sep 24 10:26:29 iPad SpringBoard[53] <Warning>: Installed apps did change.
    Added: {(
        "com.xxxxxxxxxxx.enterprise.xxxxxxxxxxxxxx"
    )}
    Removed: {(
    )}
    Modified: {(
    )}
Sep 24 10:26:31 iPad lockdownd[66] <Error>: CFStringGetCString error in locklog
Sep 24 10:26:31 iPad lockdownd[66] <Error>: CFStringGetCString error in locklog
Sep 24 10:26:31 iPad mobile_assertion_agent[145] <Notice>: service_one_connection: Connection closed for client iTunes.
Sep 24 10:26:37 iPad SpringBoard[53] <Warning>: HW kbd: Failed to set (null) as keyboard focus
我通过清除设备上的配置文件来解决这个问题.
去你的Xocde – >设备 – >齿轮图标 – >显示配置配置文件并逐个删除,直到您将其全部删除.

我不知道iOS 9与企业签署的应用程序有什么关系,但似乎它试图验证一些东西(通过浏览所有的配置文件),并在第一次启动时失败.这不应该在App Store构建中发生.

希望有帮助.

企业(内部)Swift应用程序在iOS9上推出后退出的更多相关文章

  1. AVPlayer不会在iOS9中播放来自网址的视频

    我试图在UIView中嵌入一个AVPlayer并从网址播放mp4视频文件.问题是我只收到一个黑色的空白视图(见截图)在以前的iOS版本中,它对我有用,但自从升级到iOS9后我遇到了这个问题.我的.h文件如下所示:而在我的实现文件中,我有以下内容:我错过了什么吗?

  2. 编译 – iOS9,企业应用程序中的bitcode

    我喜欢这个iOS9功能,因为用户可以将所需的切片下载到设备,以便以最小的文件大小快速更新应用程序.Bcodeode默认在Xcode7中启用,但对于企业应用程序,我们将应用程序更新上传到我们的企业服务器,我们的客户用户通过链接从我们的服务器下载它.这个过程中没有应用程序商店.对于启用了Bitcode的企业应用程序,这样可以吗?

  3. ios – 如果app bundle不包含推送通知中收到的“loc-key”的密钥怎么办?

    根据appledocumentation,通知有效载荷可以携带“loc-key”键,其识别appbundle中的本地化字符串键.如果应用程序包中没有这样的密钥会发生什么情况?

  4. ios – 强制本地化内部框架,如UIKit,无需重启App

    我必须在应用程序中添加一个切换语言的选项.我只是坚持本地化内部framworks.任何人都可以帮助我从应用程序本身的内部框架本地化,如UIKit等,而无需重新启动.我的代码工作正常,但对于内部框架的情况需要重新启动.只是内部框架没有得到本地化.我目前的代码是:创建一个名为BundleExtension.swift的文件,并将以下代码添加到其中–现在,无论何时需要更改语言,都可以调用此方法:解决方法

  5. ios – 如何在Xcode 7中自动化UI测试期间访问本地化字符串?

    所以我必须先转换它才能知道它在使用NSLocalizedString之前的原因:有没有简单的方法来解决Xcode中的这个问题?如果可能的话,我不想在我的代码中使用这些无意义的字符串,很难知道它是什么.或者我必须编写一个脚本来处理这个问题?

  6. 如何在iOS 9中添加UIPopOverController暗淡背景.(iPad)

    在iOS9苹果iPadpopOver出现之前,背景暗淡.但是在iOS9中显示popOver时,它永远不会使背景视图变暗.我想在iOS9中调暗背景视图.任何解决方案解决方法你已经尝试了什么以及你的代码看起来如何?

  7. ccAvenue支付网关中ios 9中的安全性错误

    在iOS9发布之前,我在我的iOS应用程序中集成了ccAvenuepaymeny网关.付款已成功转移到iOS8中的商家帐户.当我在iOS9中测试我的应用程序时,付款转移到商家帐户但显示安全错误.我还更改了libcrypto.a和libssl.a库.更改此库之前xcode抛出错误就像libcrypto.a(cryptlib.o),buildingforiOSsimulator,butlinkingi

  8. ios – 无法启动iPhone模拟器

    /Library/Developer/CoreSimulator/Devices/530A44CB-5978-4926-9E91-E9DBD5BFB105/data/Containers/Bundle/Application/07612A5C-659D-4C04-ACD3-D211D2830E17/ProductName.app/ProductName然后,如果您在Xcode构建设置中选择标准体系结构并再次构建和运行,则会产生以下结果:dyld:lazysymbolbindingFailed:Symbol

  9. iOS 9:为同一个应用程序返回不同的推送令牌(在安装之间)

    我在同一台设备上看到为同一个应用程序返回的不同令牌:–(void)application:(UIApplication*)applicationdidRegisterForRemoteNotificationsWithDevicetoken:(NSData*)devicetoken安装之间.例如,首次安装后,它将返回令牌“A”,如果我删除应用程序并重新安装它将返回令牌“B”.我在iOS9最新测试版

  10. xcode – 打开模块的导入文件:权限被拒绝

    我在另一台计算机上设置了一个远程Git存储库和XcodeServer,然后在Xcode中创建了一个bot.每次我尝试进行新的集成时,都会失败并出现如下错误:如果我评论此文件中的所有内容,bot会开始为另一个框架(以及另一个.swift文件)显示相同的错误.它可以是Swift或Objective-C框架.此项目的搜索路径为:$(PROJECT_DIR),并且“始终搜索用户路径”设置为“是”我正在使用

随机推荐

  1. Swift UITextField,UITextView,UISegmentedControl,UISwitch

    下面我们通过一个demo来简单的实现下这些控件的功能.首先,我们拖将这几个控件拖到storyboard,并关联上相应的属性和动作.如图:关联上属性和动作后,看看实现的代码:

  2. swift UISlider,UIStepper

    我们用两个label来显示slider和stepper的值.再用张图片来显示改变stepper值的效果.首先,这三个控件需要全局变量声明如下然后,我们对所有的控件做个简单的布局:最后,当slider的值改变时,我们用一个label来显示值的变化,同样,用另一个label来显示stepper值的变化,并改变图片的大小:实现效果如下:

  3. preferredFontForTextStyle字体设置之更改

    即:

  4. Swift没有异常处理,遇到功能性错误怎么办?

    本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请发送邮件至dio@foxmail.com举报,一经查实,本站将立刻删除。

  5. 字典实战和UIKit初探

    ios中数组和字典的应用Applicationschedule类别子项类别名称优先级数据包contactsentertainment接触UIKit学习用Swift调用CocoaTouchimportUIKitletcolors=[]varbackView=UIView(frame:CGRectMake(0.0,0.0,320.0,CGFloat(colors.count*50)))backView

  6. swift语言IOS8开发战记21 Core Data2

    上一话中我们简单地介绍了一些coredata的基本知识,这一话我们通过编程来实现coredata的使用。还记得我们在coredata中定义的那个Model么,上面这段代码会加载这个Model。定义完方法之后,我们对coredata的准备都已经完成了。最后强调一点,coredata并不是数据库,它只是一个框架,协助我们进行数据库操作,它并不关心我们把数据存到哪里。

  7. swift语言IOS8开发战记22 Core Data3

    上一话我们定义了与coredata有关的变量和方法,做足了准备工作,这一话我们来试试能不能成功。首先打开上一话中生成的Info类,在其中引用头文件的地方添加一个@objc,不然后面会报错,我也不知道为什么。

  8. swift实战小程序1天气预报

    在有一定swift基础的情况下,让我们来做一些小程序练练手,今天来试试做一个简单地天气预报。然后在btnpressed方法中依旧增加loadWeather方法.在loadWeather方法中加上信息的显示语句:运行一下看看效果,如图:虽然显示出来了,但是我们的text是可编辑状态的,在storyboard中勾选Editable,再次运行:大功告成,而且现在每次单击按钮,就会重新请求天气情况,大家也来试试吧。

  9. 【iOS学习01】swift ? and !  的学习

    如果不初始化就会报错。

  10. swift语言IOS8开发战记23 Core Data4

    接着我们需要把我们的Rest类变成一个被coredata管理的类,点开Rest类,作如下修改:关键字@NSManaged的作用是与实体中对应的属性通信,BinaryData对应的类型是NSData,CoreData没有布尔属性,只能用0和1来区分。进行如下操作,输入类名:建立好之后因为我们之前写的代码有些地方并不适用于coredata,所以编译器会报错,现在来一一解决。

返回
顶部