Xcode: Could not inspect the application package
Solution 1
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.
Solution 2
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.
Solution 3
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.
Solution 4
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.
Solution 5
If you have moved or copied a folder named resources
or resource
into your project, try renaming it. Then perform a clean
.
Josh Kahane
Updated on July 09, 2022Comments
-
Josh Kahane almost 2 years
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?
-
Josh Kahane over 9 yearsI've checked for inconsistencies, but none are present.
-
ricardopereira over 9 yearsThat worked for me! Thank you. I'm with Xcode 6 GM 2 and iOS 8.1 b2.
-
Marcos Curvello over 9 years@ricardopereira glad I could help ;)
-
Josh Kahane over 9 yearsRan the terminal command on my .app file in derived data. Still throwing this hell forsaken error!
-
Josh Kahane over 9 yearsTaDa! Very elusive, but that was it! I had a
ß
in my title. That sorted it! Thanks. -
Dali over 9 yearsApple should fix that!
-
Denis Kutlubaev over 9 yearsI had to change both release and debug product names to run on device.
-
Chris Ho about 8 yearscheck if you have copy-paste from other project but forgot rename product name will cause the error, refer stackoverflow.com/questions/3872175/…
-
Chris Ho about 8 yearsadditional : targets->Copy Bundle Resources-> remove Info.plist also solve the problem for me. stackoverflow.com/questions/3095612/…
-
Dylan Ireland almost 8 yearsAwesome! Thank god
-
DevStarlight over 6 yearsI had the same issue duplicating my target from scratch and renaming it to
info.plist
instead ofInfo.plist
-
Skywalker almost 5 yearsI have 3rd party framework included. I signed the framework using the command but still throwing this error..
-
Booyoung Park about 4 yearsXCode 11 still has the same problem... This solved my problem. Thank you.
-
Curtis almost 4 yearsBut I was told to add the binaries to solve "thread 1 signal sigabrt" error
-
bojan over 2 yearsThanks, this solved my issue when adding Google ads frameworkds!