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.
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.
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.
Does anyone have any ideas?
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)
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
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