无法将应用程序部署到ios 8设备

Tem*_*lar 16 xcode ios xcode6 ios8

刚刚将iPad Mini更新到iOS 8,突然无法使用XCode 6.0.1在其上调试我的应用程序.Xcode中的错误App installation failedAn unknown error has occurred..在设备上,应用程序仍然显示为灰色.

试着 :

  • 从ipad删除应用程序(之前正在工作)
  • 软复位并重启设备
  • 删除派生数据并清理
  • 重启mac
  • 重新安装xcode
  • 更改包ID和产品名称
  • 重新创建开发证书和配置文件

iOS 6和iOS 7设备工作正常,也可以调试其他项目,但不是这个,所以我变得绝望.

任何的想法 ?

控制台日志:

23/09/14 18:24:16,617 Xcode[421]: createShadowPath (thread 0x12a2f6000): returning: /var/folders/lq/1z47wljj77gbhhrhc9z_yylw0000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/942f46185227b6e098ea41a4548a0649/e269ac837383a4b805c1e212d18ffe36483ab24a/TDev.app
23/09/14 18:24:16,617 Xcode[421]: createSiblingInPath (thread 0x12a2f6000): returning: /var/folders/lq/1z47wljj77gbhhrhc9z_yylw0000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/942f46185227b6e098ea41a4548a0649/e269ac837383a4b805c1e212d18ffe36483ab24a/ManifestCache.plist
23/09/14 18:24:16,690 Xcode[421]: _AMDeviceCopyInstalledAppInfo (thread 0x12a2f6000): no app info
23/09/14 18:24:16,693 Xcode[421]: AMDeviceSecureInstallApplicationBundle (thread 0x12a2f6000): unable to get installed app info, falling back to old skool install
23/09/14 18:24:16,693 Xcode[421]: AMDeviceSecureInstallApplicationBundle (thread 0x12a2f6000): Blasting the bundle over to the device in an old skool way
23/09/14 18:24:27,005 Xcode[421]: AMDErrorForMobileInstallationCallbackDict (thread 0x114564000): GOT AN ERROR 0xe800003a
23/09/14 18:24:27,032 Xcode[421]: SZConduit: _MonitorResultDispatchFunction:140 (0x0x114564000): Got error from service: InstallationFailed
23/09/14 18:24:27,033 Xcode[421]: _AMDeviceTransferAndInstall (thread 0x12a2f6000): SZConduitSendPathWithPreflight failed: 0xe8008001
23/09/14 18:24:27,051 Xcode[421]: writeDictToFile:1258 ==== Successfully wrote Manifest cache to /var/folders/lq/1z47wljj77gbhhrhc9z_yylw0000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/942f46185227b6e098ea41a4548a0649/e269ac837383a4b805c1e212d18ffe36483ab24a/ManifestCache.plist
23/09/14 18:24:27,053 Xcode[421]: AMDeviceSecureInstallApplicationBundle (thread 0x12a2f6000): returning 0xe8008001
Run Code Online (Sandbox Code Playgroud)

编辑:

似乎证书的重新生成是解决方案,但在Clean之后还需要一个Clean Build Folder,它解决了这个问题(至少目前为止).

til*_*uki 14

只是添加(并感谢大家对这里给出的提示),系统地找出原因是我解决这个问题的关键.

使用Xcode6中的"设备"窗口然后连接到插入的iPhone,您可以查看实时日志 - 一旦您选择了iPhone,请单击底部的微小向上箭头图标.在我的情况下,输出如下所示,强烈表明我的(自定义)捆绑框架之一的"无法验证代码签名......"是问题的症结所在.

这导致我检查并发现它与过期证书(一切都在日期)无关,也没有任何剩余的DerivedData或临时构建文件(尽管总是很好干净!)

事实上,我的自定义框架的"CFBundleExecutable"有一个错字 - 所以签名实际上是一个错误.这不会立即在Xcode中报告 - 即使您的嵌入式框架的"复选框上的代码签名"打开了复选框.尝试在命令行上单独签署一个框架,它会告诉你!

Jul 13 09:40:43 Tims-iPhone installd[2302] <Notice>: 0x10048c000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/miin.app" type Developer requested by streaming_zip_conduit (pid 2303)
Jul 13 09:40:43 Tims-iPhone installd[2302] <Notice>: 0x10048c000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.timlukins.miin; Version=1, ShortVersion=1.0>
Jul 13 09:40:44 Tims-iPhone profiled[2107] <Notice>: (Note ) MC: Provisioning profiles changed
Jul 13 09:40:44 Tims-iPhone installd[2302] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Jul 13 09:40:44 Tims-iPhone installd[2302] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Jul 13 09:40:44 Tims-iPhone installd[2302] <Error>: unrecognized status -67049 from codesigning library
Jul 13 09:40:44 Tims-iPhone installd[2302] <Error>: 0x10048c000 -[MICodeSigningVerifier performValidationWithError:]: 188: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.J7tWkl/extracted/miin.app/Frameworks/libmiincore.framework identifier = com.timlukins.libmiincore type = Framework> : 0xe8008001 (Unknown error)
Jul 13 09:40:44 Tims-iPhone installd[2302] <Error>: 0x10048c000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Jul 13 09:40:44 Tims-iPhone streaming_zip_conduit[2303] <Error>: 0x100484000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.J7tWkl/extracted/miin.app/Frameworks/libmiincore.framework identifier = com.timlukins.libmiincore type = Framework> : 0xe8008001 (Unknown error)" UserInfo=0x12ee1fa30 {LibMISErrorNumber=-402620415, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=188, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.J7tWkl/extracted/miin.app/Frameworks/libmiincore.framework identifier = com.timlukins.libmiincore type = Framework> : 0xe8008001 (Unknown error)}
Jul 13 09:40:44 Tims-iPhone streaming_zip_conduit[2303] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jul 13 09:40:44 Tims-iPhone streaming_zip_conduit[2303] <Warning>: __dispatch_source_read_socket_block_invoke:203: Failed to install application at file:///var/mobile/Media/PublicStaging/miin.app/ : Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x12ed20140 {Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.J7tWkl/extracted/miin.app/Frameworks/libmiincore.framework identifier = com.timlukins.libmiincore type = Framework> : 0xe8008001 (Unknown error)}
Run Code Online (Sandbox Code Playgroud)


EPa*_*_Ed 8

我刚刚被Xcode 7.2击中了.查看设备控制台日志,指向CocoaPods中的第三方框架."pod更新"了,现在一切都很好.


Ste*_*art 7

我的经验是为了得到它的价值... Xcode 7.3

我有一个非常烦人的pod,不再使用,所以确保它已从框架中删除.接下来 - CocoaPods抱怨正在使用的Frameworks - 所以确保我运行的是我拥有的最新Ruby(在我的情况下为2.1.2),然后执行以下操作:

  1. 更新了豆荚
  2. '产品' - >'清洁'
  3. 选择'产品' - >'清洁'
  4. 删除了所有派生数据

解决方案有效 - 我注意到了一件事 - 当我第一次尝试这个时,我在尝试选择'产品' - >'清洁'时出现了权限错误.因此,"删除"所有"派生数据,而不仅仅是项目......

不知道它为什么会起作用,但我认为我会分享它以帮助某人.


Lea*_*dro 4

您使用任何外部库或 SDK 吗?也许您有一个不支持 iOS 8 的库。

如果我是你,我会创建一个新项目,仅用于测试目的,使用单个视图,并使用计算机中的 Xcode 检查它是否在 iOS 8 中运行。如果运行正常,那么问题就出在你的实际项目中。

  • 圣堂武士,你解决这个问题了吗?如果是这样,你能分享你的解决方案吗?谢谢...编码愉快! (2认同)