09:38:07 itunesstored➜[Download]: Reprioritizing to high task: 4 for download: 4270672922564713524
09:38:08 itunesstored➜[Download]: Reprioritizing to high task: 4 for download: 4270672922564713524
09:38:16 nsurlsessiond➜SocketStream watchdog timer fired after 65.000000 seconds of inactivity. Timing out the connection.
09:38:16 itunesstored➜[Download]: Retry scheduled for task: 4, download: 4270672922564713524, error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSErrorFailingURLStringKey=http://www.cmccim.com/resource/littlec_iOS_1.3.0.ipa, _kCFStreamErrorCodeKey=-2104, NSErrorFailingURLKey=http://www.cmccim.com/resource/littlec_iOS_1.3.0.ipa, NSLocalizedDescription=The request timed out., _kCFStreamErrorDomainKey=4}
09:38:17 itunesstored➜[Download]: Reset data consumer for task: 4, with resumption offset: 7810493
09:38:20 itunesstored➜[Download]: Download task did finish: 4 for download: 4270672922564713524
09:38:20 itunesstored➜[ApplicationWorkspace] Installing download: 4270672922564713524 with step(s): Install
09:38:20 itunesstored➜[ApplicationWorkspace]: Installing software package with bundleID: com.cmcchy.xiaoxi: bundleVersion: 1.3.0 path: /var/mobile/Media/Downloads/4270672922564713524/-556691672994417771
09:38:21 itunesstored➜[ApplicationWorkspace]: Bundle validated for bundleIdentifier: com.cmcchy.xiaoxi success: 1
09:38:21 itunesstored➜LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x14ee3dc0> com.cmcchy.xiaoxi (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/8AD346A2-0B79-4E3E-A623-13FE5328B10A/4270672922564713524.app>
09:38:21 itunesstored➜LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14ee3dc0> com.cmcchy.xiaoxi (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/8AD346A2-0B79-4E3E-A623-13FE5328B10A/4270672922564713524.app> withPhase:1
09:38:21 installd➜0x40115000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/Downloads/4270672922564713524/-556691672994417771" type Customer requested by itunesstored (pid 310)
09:38:23 installd➜0x40081000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.cmcchy.xiaoxi; Version=1, ShortVersion=1.0>
09:38:24 profiled➜(Note ) MC: Provisioning profiles changed
09:38:24 profiled➜(Note ) MC: Updating MIS trust...
09:38:24 installd➜ SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
09:38:26 online-auth-agent➜ SecTrustEvaluate [leaf AnchorTrusted]
09:38:27 installd➜0x40081000 MIMachOFileMatchesMyArchitecture: 310: Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KV3EvC/extracted/Payload/ChatDemo.app/ChatDemo
09:38:27 installd➜0x40081000 -[MIInstaller performInstallationWithError:]: Verification stage failed
09:38:28 itunesstored➜0x40081000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=15 "Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KV3EvC/extracted/Payload/ChatDemo.app/ChatDemo" UserInfo={LegacyErrorString=IncorrectArchitecture, FunctionName=MIMachOFileMatchesMyArchitecture, NSLocalizedDescription=Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KV3EvC/extracted/Payload/ChatDemo.app/ChatDemo, SourceFileLine=310}
09:38:28 itunesstored➜ERROR: MobileInstallationInstallForLaunchServices returned nil
09:38:28 itunesstored➜LaunchServices: installPhaseFinishedForProgress: com.cmcchy.xiaoxi.Installing - <NSProgress: 0x14debe10> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
09:38:28 itunesstored➜[ApplicationWorkspace]: Failed to install application: com.cmcchy.xiaoxi; /var/mobile/Media/Downloads/4270672922564713524/-556691672994417771; Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=IncorrectArchitecture, ErrorDescription=Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KV3EvC/extracted/Payload/ChatDemo.app/ChatDemo}
09:38:28 itunesstored➜[ApplicationWorkspace] Install complete for download: 4270672922564713524 result: Failed
09:38:28 itunesstored➜[Download]: Fail download: 4270672922564713524 after error: Error Domain=SSMobileInstallationErrorDomain Code=0 "(null)" UserInfo={SSErrorInstallErrorNameKey=IncorrectArchitecture}
所以怀疑是ipa打包配置需要改下,经分析可能是这里的问题:
将yes
将yes改为no,重新打包安装,解决~
猜测:可能是到9.0.2优先检查ipa的最高架构,假如支持了arm64就安装此架构到设备上,而iphone5c不支持arm64,这样就报了上面的错,修改这个配置就是让其不严格校验架构,可以兼容所有支持的架构。
09:38:07 itunesstored➜[Download]: Reprioritizing to high task: 4 for download: 4270672922564713524
09:38:08 itunesstored➜[Download]: Reprioritizing to high task: 4 for download: 4270672922564713524
09:38:16 nsurlsessiond➜SocketStream watchdog timer fired after 65.000000 seconds of inactivity. Timing out the connection.
09:38:16 itunesstored➜[Download]: Retry scheduled for task: 4, download: 4270672922564713524, error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSErrorFailingURLStringKey=http://www.cmccim.com/resource/littlec_iOS_1.3.0.ipa, _kCFStreamErrorCodeKey=-2104, NSErrorFailingURLKey=http://www.cmccim.com/resource/littlec_iOS_1.3.0.ipa, NSLocalizedDescription=The request timed out., _kCFStreamErrorDomainKey=4}
09:38:17 itunesstored➜[Download]: Reset data consumer for task: 4, with resumption offset: 7810493
09:38:20 itunesstored➜[Download]: Download task did finish: 4 for download: 4270672922564713524
09:38:20 itunesstored➜[ApplicationWorkspace] Installing download: 4270672922564713524 with step(s): Install
09:38:20 itunesstored➜[ApplicationWorkspace]: Installing software package with bundleID: com.cmcchy.xiaoxi: bundleVersion: 1.3.0 path: /var/mobile/Media/Downloads/4270672922564713524/-556691672994417771
09:38:21 itunesstored➜[ApplicationWorkspace]: Bundle validated for bundleIdentifier: com.cmcchy.xiaoxi success: 1
09:38:21 itunesstored➜LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x14ee3dc0> com.cmcchy.xiaoxi (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/8AD346A2-0B79-4E3E-A623-13FE5328B10A/4270672922564713524.app>
09:38:21 itunesstored➜LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14ee3dc0> com.cmcchy.xiaoxi (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/8AD346A2-0B79-4E3E-A623-13FE5328B10A/4270672922564713524.app> withPhase:1
09:38:21 installd➜0x40115000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/Downloads/4270672922564713524/-556691672994417771" type Customer requested by itunesstored (pid 310)
09:38:23 installd➜0x40081000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.cmcchy.xiaoxi; Version=1, ShortVersion=1.0>
09:38:24 profiled➜(Note ) MC: Provisioning profiles changed
09:38:24 profiled➜(Note ) MC: Updating MIS trust...
09:38:24 installd➜ SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
09:38:26 online-auth-agent➜ SecTrustEvaluate [leaf AnchorTrusted]
09:38:27 installd➜0x40081000 MIMachOFileMatchesMyArchitecture: 310: Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KV3EvC/extracted/Payload/ChatDemo.app/ChatDemo
09:38:27 installd➜0x40081000 -[MIInstaller performInstallationWithError:]: Verification stage failed
09:38:28 itunesstored➜0x40081000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=15 "Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KV3EvC/extracted/Payload/ChatDemo.app/ChatDemo" UserInfo={LegacyErrorString=IncorrectArchitecture, FunctionName=MIMachOFileMatchesMyArchitecture, NSLocalizedDescription=Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KV3EvC/extracted/Payload/ChatDemo.app/ChatDemo, SourceFileLine=310}
09:38:28 itunesstored➜ERROR: MobileInstallationInstallForLaunchServices returned nil
09:38:28 itunesstored➜LaunchServices: installPhaseFinishedForProgress: com.cmcchy.xiaoxi.Installing - <NSProgress: 0x14debe10> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
09:38:28 itunesstored➜[ApplicationWorkspace]: Failed to install application: com.cmcchy.xiaoxi; /var/mobile/Media/Downloads/4270672922564713524/-556691672994417771; Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=IncorrectArchitecture, ErrorDescription=Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KV3EvC/extracted/Payload/ChatDemo.app/ChatDemo}
09:38:28 itunesstored➜[ApplicationWorkspace] Install complete for download: 4270672922564713524 result: Failed
09:38:28 itunesstored➜[Download]: Fail download: 4270672922564713524 after error: Error Domain=SSMobileInstallationErrorDomain Code=0 "(null)" UserInfo={SSErrorInstallErrorNameKey=IncorrectArchitecture}
所以怀疑是ipa打包配置需要改下,经分析可能是这里的问题:
将yes
将yes改为no,重新打包安装,解决~
猜测:可能是到9.0.2优先检查ipa的最高架构,假如支持了arm64就安装此架构到设备上,而iphone5c不支持arm64,这样就报了上面的错,修改这个配置就是让其不严格校验架构,可以兼容所有支持的架构。
这篇博客详细记录了iOS9系统中遇到的应用下载失败的问题,通过系统日志分析,发现错误原因是由于应用的架构不匹配导致。作者提出了解决方案,即修改IPA打包配置,允许不严格校验架构,以兼容所有支持的设备。
4913





