Can't deploy app to ios 8 device

2019-04-04 00:09发布

Just updated an iPad Mini to iOS 8 and suddenly can't debug my app on it with XCode 6.0.1. The error in Xcode is App installation failed with An unknown error has occurred.. On the device the app remains greyed out.

Tried to :

  • delete the app from ipad ( was working before )
  • Soft reset and reboot the device
  • Delete derived data and clean
  • Reboot the mac
  • reinstall xcode
  • change the bundle id and product name
  • Recreate the dev certificates and provisioning profiles

With iOS 6 and iOS 7 devices works fine, also, can debug other projects too, but not this one, so I'm getting desperate.

Any idea ?

Console log:

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

Edit:

It seems that the regeneration of the certificates was the solution but after Clean there was necessary a Clean Build Folder too, which solved the issue (for now at least).

11条回答
我命由我不由天
2楼-- · 2019-04-04 01:00

I had the same issue and it was related to the provisioning process. My project was connected to two developer accounts and on one of them had expired certificates.

To solve the issue I had to remove one of the accounts and chose the specific 'Signing Identity' in 'Build Settings'. I don't know if it's a requirement but during this process I deleted the projects 'Derived Data'.

查看更多
啃猪蹄的小仙女
3楼-- · 2019-04-04 01:01

If there is anyone using the User Notification Extensions or Content in iOS 10 and then deleted the folders/files that XCode generates for you. You may get the same error: App installation failed with An unknown error has occurred

Then go to your project targets and delete the target that the Extension/Content generates. Sometimes, if you try to do that, XCode will crash. I spend about an hour trying to figure out why... eg: Cleaning build folders and derived data folders. What fixed it was to remove the UserNotification Frameworks that were linked to that Scheme. Only then, I was able to delete the said scheme.

In my case, I only needed the extension, so I deleted the target highlighted with gray.

enter image description here

查看更多
The star\"
4楼-- · 2019-04-04 01:02

Ill just run "pod update" again when using Cocoapods. Tested with Xcode 7.3.

查看更多
\"骚年 ilove
5楼-- · 2019-04-04 01:05

My experience to get a fix for what it's worth... Xcode 7.3

I had a very annoying pod that was no longer in use so made sure it was removed from frameworks. Next - CocoaPods complained about the Frameworks in use - so made sure I was running the latest Ruby I have (2.1.2 in my case), then did the following:

  1. Updated pods
  2. 'Product'-> 'Clean'
  3. Opt 'Product'-> 'Clean'
  4. Deleted all derived data

Solution worked - One thing I noticed though - when I tried this first I got a permissions error when trying the Opt 'Product'-> 'Clean'. Hence the 'delete "all" derived data, rather than just the projects...

No idea why it worked, but thought I'd share in case it helps someone.

查看更多
戒情不戒烟
6楼-- · 2019-04-04 01:06

I just removed the third party frameworks I was using. Then re-installed them. This fixed my problem. Hope this helps someone.

查看更多
登录 后发表回答