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

刚刚更新了一个iPad的Mini到iOS 8,突然无法用XCode 6.0.1debugging我的应用程序。 Xcode中的错误是App installation failedAn unknown error has occurred. 。 在设备上的应用程序保持灰色。

试着 :

  • 从ipad删除应用程序(以前工作)
  • 软复位并重启设备
  • 删除派生数据并清理
  • 重新启动Mac
  • 重新安装xcode
  • 更改包ID和产品名称
  • 重新创build开发证书和供应configuration文件

iOS 6和iOS 7设备工作正常,也可以debugging其他项目,但不是这个,所以我越来越绝望。

任何想法 ?

控制台日志:

 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 

编辑:

似乎证书的再生是解决scheme,但是在Clean之后,还需要一个Clean Build Folder来解决这个问题(至less现在是这样)。

只要加上(并且感谢大家提供的这里给出的提示), 系统地找出原因是解决这个问题的关键。

使用Xcode6中的“设备”窗口,然后连接到插入iPhone允许您查看实时日志 – 一旦你select了iPhone点击底部的小箭头图标 。 在我的情况下,输出结果如下所示,强烈地表明我的(自定义)捆绑框架之一“validation代码签名失败…”是问题的关键。

这导致我检查和发现它与过时的证书(一切都在date)没有任何关系,也没有任何剩余的DerivedData或临时构build文件(虽然总是很好干净!)

事实上,我的自定义框架的“CFBundleExecutable”有一个错字 – 所以签名实际上是抛出一个错误。 这不会立即在Xcode中报告 – 即使您的embedded式框架上的checkbox处于“代码复制”状态。 尝试单独在命令行签名框架,它会告诉你!

 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)} 

我刚刚用Xcode 7.2命中了这个。 查看设备控制台日志指向CocoaPods中的第三方框架。 做了一个“荚更新”,现在一切都很好。

我的经验,以获得它是值得的修复… Xcode 7.3

我有一个非常恼人的豆荚,不再使用,所以确保它从框架中删除。 下一步 – CocoaPods抱怨使用的框架 – 所以确保我运行了最新的Ruby(我的2.1.2),然后执行以下操作:

  1. 更新了豆荚
  2. '产品' – >'清洁'
  3. select“产品” – >“清洁”
  4. 删除所有派生的数据

解决scheme的工作 – 我注意到,但有一件事 – 当我尝试这第一次,我试图select“产品” – >“清洁”时出现权限错误。 因此,“删除”所有“派生的数据,而不仅仅是项目…

不知道为什么它的工作,但认为我会分享,以防止他人帮助。

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

如果我是你,我会创build一个新的项目,仅用于testing目的,只有一个视图,并检查它是否运行在我的电脑中的Xcode在iOS 8中。 如果运行正常,那么问题就在你的实际项目中。

我有同样的问题,这是有关的configuration过程。 我的项目连接到两个开发人员帐户,其中一个帐户已过期。

为了解决这个问题,我不得不删除其中一个账户,并在“Build Settings”中select了特定的“Signing Identity”。 我不知道这是否是一个要求,但在这个过程中,我删除了项目的派生数据。

我浪费了3天,现在我解决了同样的问题。 就我而言,我的项目有第三方框架(我的情况是Dropbox)。

可能Xcode需要在“构build阶段/复制文件”中对每个embedded式框架进行签名。 或者embedded式代码太旧,无法复制到Xcode构build。

在我的情况下,问题是我没有留在设备上的空间。 希望能帮助别人。

我只是在使用Cocoapods时再次运行“pod update”。 用Xcode 7.3testing。

在我的情况下,我只是更新cocoa豆荚,它的工作。 请更新吊舱并再次检查。

我刚刚删除了我正在使用的第三方框架。 然后重新安装它们。 这解决了我的问题。 希望这有助于某人。

如果有人在iOS 10中使用用户通知扩展或内容,然后删除XCode为您生成的文件夹/文件。 您可能会收到同样的错误: 应用程序安装失败,发生未知错误

然后转到您的项目目标并删除扩展/内容生成的目标。 有时候,如果你试图这样做,XCode会崩溃。 我花了大约一个小时,试图找出为什么…例如:清理生成文件夹和派生的数据文件夹。 固定的是删除链接到该计划的UserNotification框架 。 只有这样,我才能删除上述scheme。

在我的情况下,我只需要扩展名,所以我删除了用灰色突出显示的目标。

在这里输入图像说明