“应用程序安装失败:无法检查应用程序包” [英] "App installation failed: Could not inspect application package"

查看:595
本文介绍了“应用程序安装失败:无法检查应用程序包”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

做Build&从Xcode运行到我的iPhone,Xcode不断给我这个错误:

When doing a Build & Run from Xcode to my iPhone, Xcode continually gives me this error:

它给我错误后,没有控制台错误,我可以再次运行它;它很好并且可以毫无问题地部署到设备上。

After it gives me the error, there are no console errors and I can run it again; it's fine and deploys to the device without a problem.

我对如何解决这个问题感到很茫然。我已经尝试了这里此处这里这里

I'm at a loss as to how to fix this. I have tried the solutions in the question here, here, here and here.

我已经执行了 Clean & a 清洁构建文件夹。我已从工作区中删除所有文件,然后重新添加它们。我检查了捆绑包标识符,甚至尝试更改它。我尝试重新安装Xcode,从设备中删除应用程序,重新启动iPhone并重新安装应用程序。

I've performed a Clean & a Clean Build Folder. I've removed all the files from the workspace, and re-added them. I have checked the bundle identifier and even tried changing it. I tried re-installing Xcode, deleting the app from the device, restarting my iPhone and re-installing the app.

我在MacBook上使用Xcode 6.0.1 Pro使用运行iOS 8.0.2的iPhone 6运行10.9.5。我也在使用CocoaPods版本0.34.1。

I'm using Xcode 6.0.1 on a MacBook Pro running 10.9.5 with an iPhone 6 running iOS 8.0.2. I am also using CocoaPods version 0.34.1.

有没有人有任何想法?

这是日志按照建议。第一个来自正常的构建,运行良好;第二个引发错误:

Here are the logs as suggested. The first one is from a normal build that runs fine; the second throws an error:

10/8/14 21:56:23.413 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x11954a000): ENTRY, options: {
    PackageType = Developer;
    ShadowParentKey = "file:///var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/";
}
10/8/14 21:56:23.416 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x11954a000): device os is at least 7.0
10/8/14 21:56:23.416 Xcode[89196]: createShadowPath (thread 0x11954a000): ENTRY bundle: /Users/matthewdavies/Library/Developer/Xcode/DerivedData/Le_Camera-bfqfzezscvpmaxdceudixqcuvokd/Build/Products/Debug-iphoneos/LeÃÅ Camera.app
10/8/14 21:56:23.416 Xcode[89196]: create_shadow_dir_path (thread 0x11954a000): bundle: /Users/matthewdavies/Library/Developer/Xcode/DerivedData/Le_Camera-bfqfzezscvpmaxdceudixqcuvokd/Build/Products/Debug-iphoneos/LeÃÅ Camera.app
10/8/14 21:56:23.416 Xcode[89196]: createShadowPath (thread 0x11954a000): returning: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/LeÃÅ Camera.app
10/8/14 21:56:23.416 Xcode[89196]: createSiblingInPath (thread 0x11954a000): returning: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/ManifestCache.plist
10/8/14 21:56:23.458 Xcode[89196]: createSiblingInPath (thread 0x11954a000): returning: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/InstalledAppInfo
10/8/14 21:56:23.459 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x11954a000): no old package to delta against, falling back to old skool install
10/8/14 21:56:23.460 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x11954a000): Blasting the bundle over to the device in an old skool way
10/8/14 21:56:25.321 Xcode[89196]: _AMDeviceUpdateOldPackage (thread 0x11954a000): copy_new_to_shadow: TRUE
10/8/14 21:56:25.367 Xcode[89196]: _AMDeviceUpdateOldPackage (thread 0x11954a000): copying:
/Users/matthewdavies/Library/Developer/Xcode/DerivedData/Le_Camera-bfqfzezscvpmaxdceudixqcuvokd/Build/Products/Debug-iphoneos/LeÃÅ Camera.app
to
/var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe
10/8/14 21:56:25.403 Xcode[89196]: createSiblingInPath (thread 0x11954a000): returning: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/InstalledAppInfo
10/8/14 21:56:25.406 Xcode[89196]: writeDictToFile:1258 ==== Successfully wrote Manifest cache to /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/ManifestCache.plist
10/8/14 21:56:25.407 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x11954a000): returning 0x00000000
10/8/14 21:56:27.366 tccd[328]: Unable to verify code signing identity of com.apple.dt.Xcode:  code failed to satisfy specified code requirement(s)

当Xcode抛出错误时:

When Xcode throws an error:

10/8/14 21:56:58.065 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x112e35000): ENTRY, options: {
    PackageType = Developer;
    ShadowParentKey = "file:///var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/";
}
10/8/14 21:56:58.069 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x112e35000): device os is at least 7.0
10/8/14 21:56:58.069 Xcode[89196]: createShadowPath (thread 0x112e35000): ENTRY bundle: /Users/matthewdavies/Library/Developer/Xcode/DerivedData/Le_Camera-bfqfzezscvpmaxdceudixqcuvokd/Build/Products/Debug-iphoneos/LeÃÅ Camera.app
10/8/14 21:56:58.070 Xcode[89196]: create_shadow_dir_path (thread 0x112e35000): bundle: /Users/matthewdavies/Library/Developer/Xcode/DerivedData/Le_Camera-bfqfzezscvpmaxdceudixqcuvokd/Build/Products/Debug-iphoneos/LeÃÅ Camera.app
10/8/14 21:56:58.070 Xcode[89196]: createShadowPath (thread 0x112e35000): returning: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/LeÃÅ Camera.app
10/8/14 21:56:58.070 Xcode[89196]: createSiblingInPath (thread 0x112e35000): returning: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/ManifestCache.plist
10/8/14 21:56:58.197 Xcode[89196]: createSiblingInPath (thread 0x112e35000): returning: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/InstalledAppInfo
10/8/14 21:56:58.198 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x112e35000): calling MDMCreateDeltaDirectoryForDevice with (
    "Info.plist",
    "ResourceRules.plist",
    CodeResources,
    "_CodeSignature/CodeResources"
)
10/8/14 21:56:58.198 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x112e35000): dst_ipa_container: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/LeÃÅ Camera.app.KLv2tc
dst_ipa: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/LeÃÅ Camera.app.KLv2tc/LeÃÅ Camera.app_sparse.ipa
10/8/14 21:56:58.198 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x112e35000): diffing /Users/matthewdavies/Library/Developer/Xcode/DerivedData/Le_Camera-bfqfzezscvpmaxdceudixqcuvokd/Build/Products/Debug-iphoneos/LeÃÅ Camera.app
10/8/14 21:56:58.198 Xcode[89196]: MDMCreateDeltaDirectory:1840 calling MDMDirectoryDiff with:
state->old_bundle: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/LeÃÅ Camera.app
state->new_bundle: /Users/matthewdavies/Library/Developer/Xcode/DerivedData/Le_Camera-bfqfzezscvpmaxdceudixqcuvokd/Build/Products/Debug-iphoneos/LeÃÅ Camera.app
state->dst_bundle: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/LeÃÅ Camera.app.KLv2tc/LeÃÅ Camera.app_sparse.ipa/Payload//LeÃÅ Camera.app, binaryDiff flag: FALSE
    dst_ipa: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/LeÃÅ Camera.app.KLv2tc/LeÃÅ Camera.app_sparse.ipa
10/8/14 21:56:58.198 Xcode[89196]: createDictFromFile:1303 ==== Successfully read Manifest cache at /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/a5d81d2c36f0db5ba32cf71be1cf7a86/ae8735d27401ee958a0e977fc19469991b1e08fe/ManifestCache.plist
10/8/14 21:56:58.199 Xcode[89196]: __MDMDirectoryDiff_block_invoke29:1414 calling writeDictToFile with: /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/LeÃÅ Camera.app.KLv2tc/LeÃÅ Camera.app_sparse.ipa/ManifestCache.plist
10/8/14 21:56:58.199 Xcode[89196]: writeDictToFile:1258 ==== Successfully wrote Manifest cache to /var/folders/4_/c486ynzs79j339w5fkccjkv00000gn/C/com.apple.DeveloperTools/6.0.1/Xcode/LeÃÅ Camera.app.KLv2tc/LeÃÅ Camera.app_sparse.ipa/ManifestCache.plist
10/8/14 21:56:58.539 Xcode[89196]: AMDErrorForMobileInstallationCallbackDict (thread 0x10c8ce000): GOT AN ERROR 0xe8000051
10/8/14 21:56:58.549 Xcode[89196]: SZConduit: _MonitorResultDispatchFunction:140 (0x0x10c8ce000): Got error from service: InstallationFailed
10/8/14 21:56:58.549 Xcode[89196]: _AMDeviceTransferAndInstall (thread 0x10a081000): SZConduitSendPathWithPreflight failed: 0xe8000051
10/8/14 21:56:58.549 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x112e35000): Install failed on device: e8000051, removing shadow directory
10/8/14 21:56:58.556 Xcode[89196]: AMDeviceSecureInstallApplicationBundle (thread 0x112e35000): returning 0xe8000051

更新:我在窗口>设备中找到了Xcode日志:

UPDATE: I found the Xcode logs in Window > Devices:

Oct 11 15:55:46 Matthews-iPhone installd[43] <Error>: 0x100524000 -[MIBundle _validateWithError:]: 28: Failed to load Info.plist from bundle at path /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.uhnTux/extracted/Payload/Lé Camera.app
Oct 11 15:55:46 Matthews-iPhone installd[43] <Error>: 0x100524000 +[MIInstallable installablesAtURL:packageFormat:userOptions:error:]: Failed to create bundle for file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.uhnTux/extracted/Payload/Le%CC%81%20Camera.app/ : Error Domain=MIInstallerErrorDomain Code=35 "Failed to load Info.plist from bundle at path /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.uhnTux/extracted/Payload/Lé Camera.app" UserInfo=0x14fd07380 {LegacyErrorString=PackageInspectionFailed, FunctionName=-[MIBundle _validateWithError:], SourceFileLine=28, NSLocalizedDescription=Failed to load Info.plist from bundle at path /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.uhnTux/extracted/Payload/Lé Camera.app}
Oct 11 15:55:46 Matthews-iPhone streaming_zip_conduit[192] <Error>: 0x100384000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=35 "Failed to load Info.plist from bundle at path /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.uhnTux/extracted/Payload/Lé Camera.app" UserInfo=0x157614c30 {LegacyErrorString=PackageInspectionFailed, FunctionName=-[MIBundle _validateWithError:], SourceFileLine=28, NSLocalizedDescription=Failed to load Info.plist from bundle at path /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.uhnTux/extracted/Payload/Lé Camera.app}
Oct 11 15:55:46 Matthews-iPhone streaming_zip_conduit[192] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Oct 11 15:55:46 Matthews-iPhone streaming_zip_conduit[192] <Warning>: __dispatch_source_read_socket_block_invoke:203: Failed to install application at file:///var/mobile/Media/PublicStaging/Le%CC%81%20Camera.app_sparse.ipa/ : Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x157611d20 {Error=PackageInspectionFailed, ErrorDescription=Failed to load Info.plist from bundle at path /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.uhnTux/extracted/Payload/Lé Camera.app}
Oct 11 15:55:51 Matthews-iPhone locationd[58] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0


推荐答案

看起来问题是由应用名称中的é字符引起的。我更改了应用程序的名称,并修复了它。

Looks like the problem was caused by an "é" character in the name of the app. I changed the name of the app, and that fixed it.

这篇关于“应用程序安装失败:无法检查应用程序包”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆