55
votes

I am running Xcode 6 and iOS 8 GM. Every other time I run my app I get this message from Xcode:

"Could not inspect the application package"

So I can run and build, I will get the message. I run and build again, everything runs as expected (this is to my device). Then it will rinse and repeat, every other time giving me this error.

I have looked at all the other solutions that have been suggested but cannot stop this error. I have cleaned my project, cleaned the build folder, deleted derived data etc with no luck.

How can I see what is causing this in the first place?

Interestingly, this only happens when running on my device. Not on the simulator. Also, it only happens on my device, when building for debug. If I change the scheme to release, I can build and run endlessly without with error. Ideas?

19
What other solutions did you tried exactly? - idmean
I'm not using any pods, although I have added the Parse framework. Although I don't see why that would change anything, it hasn't in the past. Other solutions, cleaning build folder, deleting all derived data, recreating provisioning profiles. There isn't a great deal on this issue and it is so nondescript it makes it very difficult to resolve. - Josh Kahane
any preceding errors in the console? - Brad Allred
Nope, the app never runs. Just before it runs and after is completes building, it gives the error. Nothing in the console. - Josh Kahane
Here is my clue. When Xcode is not display any useful warning or error, see the system log to analyze. Lookup the system log form Console.app And we have found missing info.plist file in carthage framework. So wonderfull. The system log is very very helpful !!! - JateXu

19 Answers

33
votes

This error seems to happen when you have third party code which isn't signed by you in your bundle. Check this thread, it helped me once.

Also when performing build clean opt for cmd + option + shift + k.

31
votes

This can happen with Xcode 6 and iOS 8 if a product name contains non-latin characters. In this case changing product name to the one with only latin characters for debug builds fixes this problem.

11
votes

Try to remove some libraries from your Xcode => Click on Target => General tab => Embedded Libraries (Keep only required libraries or Framework)

Here, remove (Use - sign on bottom to delete).

If you require the framework or libraries that you deleted, add this using Xcode => Click on Target => General tab => Linked framework and Libraries (Use - sign on bottom to add this).

This will work.

6
votes

In my case, I needed to check the option that says "Copy only when installing" under "Build Phases/Embed Frameworks" in one of the frameworks I was embedding.

4
votes

If you have moved or copied a folder named resources or resource into your project, try renaming it. Then perform a clean.

3
votes

I got this when a custom built .framework was missing its Info.plist.

2
votes

I deleted my Info.plist and I dragged a new info.plist into my project. Xcode did not show me any warning but my app would not launch until i changed the name to Info.plist.

2
votes

deleting Pods and then calling pod install worked for me

1
votes

I've seen this error before when there is something in the entitlements file but is not enabled for the app id in the provisioning centre.

Specifically I had HealthKit enabled in the entitlements file but not configured for the application identifier.

1
votes

I think there are third party files in your code, which might include compiled code which is not signed by you. If so, you can use iReSign to resign them using your own certificate. You can also use the command line:

 codesign -f -s "iPhone Developer: Name (XXXXXXXXXX)" nameOfAppToSign.app

Replace the example identity with your own (you can man codesign to read more about this command).

1
votes

I had the same issue, And was unable to install the ipa. It always ended with an error "Could not inspect the application package." and some warnings in device console

Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options   dictionary when installing an app.
Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: installing app with unknown bundleID
.
.
Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 -[MIBundle _validateWithError:]: 28: Failed to load Info.plist from bundle at path
Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 + [MIInstallable installablesAtURL:packageFormat:userOptions:error:]: Failed  to create bundle for …

After spending hours, I got it fixed by adding the "Application requires iPhone environment" in info.plist

<key>LSRequiresIPhoneOS</key>
<true/>
1
votes

Found a solution by adding the Framework to General -> Linked Frameworks And Libraries and setting the status to optional. (Leave the embedded binaries blank)

0
votes

Mine turned out to be something to do with Apple's certificates and such. I was working between two different computers and I think something went amiss. So I had to revoke my developer certificate at the Apple iOS dev site, and request a new one with a private key etc. Once the new certificate was installed, the message went

0
votes

For my case, it was file missing in a newly added *.framework. One *.plist file and "_CodeSignature" folder were missing in that *.framework. Replacing corrupted *.framework file fixed my issue.

0
votes
0
votes

Change the Display name in Targets > General > Identity

Build your app and switch back to your old name.

It worked for me

-1
votes

I had the same issue, and the problem was that I had an alias in the xCode project. I removed it and it works.

-2
votes

You can try following steps: Window->Projects and look for your project and delete 'Derived Data' for all your projects with the same name