gpt4 book ai didi

ios - "App installation failed: Could not inspect application package"

转载 作者:技术小花猫 更新时间:2023-10-29 11:18:44 31 4
gpt4 key购买 nike

当从 Xcode 构建并运行到我的 iPhone 时,Xcode 不断给我这个错误:

报错后,没有控制台报错,又可以运行了;它很好,可以毫无问题地部署到设备。

我不知道如何解决这个问题。我已经尝试了问题 here 中的解决方案, here , herehere .

我已经执行了一个清理和一个清理构建文件夹。我已经从工作区中删除了所有文件,并重新添加了它们。我检查了包标识符,甚至尝试更改它。我尝试重新安装 Xcode,从设备中删除该应用程序,重新启动我的 iPhone 并重新安装该应用程序。

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

有没有人有什么想法?

这是日志 as suggested .第一个来自运行良好的正常构建;第二个抛出错误:

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 抛出错误时:

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

更新:我在 Window > Devices 中找到了 Xcode 日志:

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

最佳答案

转到 Window->Projects (xcode6.3.2) 并查找您的项目并删除所有同名项目的“派生数据”。

我遇到了同样的问题,它对我有用。

如果以上不起作用,请尝试以下操作:

  1. 产品 => 清洁
  2. 检查您的产品名称。如果有非拉丁字符或空格,则将其删除。
  3. 如果您已将名为 resources 或 resource 的文件夹移动或复制到您的项目中,请尝试重命名它。然后进行清洁。

关于ios - "App installation failed: Could not inspect application package",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26249441/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com