Xcode: Could not inspect the application package

33,011

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.

Share:
33,011
Josh Kahane
Author by

Josh Kahane

Updated on July 09, 2022

Comments

  • Josh Kahane
    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
    Josh Kahane over 9 years
    I've checked for inconsistencies, but none are present.
  • ricardopereira
    ricardopereira over 9 years
    That worked for me! Thank you. I'm with Xcode 6 GM 2 and iOS 8.1 b2.
  • Marcos Curvello
    Marcos Curvello over 9 years
    @ricardopereira glad I could help ;)
  • Josh Kahane
    Josh Kahane over 9 years
    Ran the terminal command on my .app file in derived data. Still throwing this hell forsaken error!
  • Josh Kahane
    Josh Kahane over 9 years
    TaDa! Very elusive, but that was it! I had a ß in my title. That sorted it! Thanks.
  • Dali
    Dali over 9 years
    Apple should fix that!
  • Denis Kutlubaev
    Denis Kutlubaev over 9 years
    I had to change both release and debug product names to run on device.
  • Chris Ho
    Chris Ho about 8 years
    check if you have copy-paste from other project but forgot rename product name will cause the error, refer stackoverflow.com/questions/3872175/…
  • Chris Ho
    Chris Ho about 8 years
    additional : targets->Copy Bundle Resources-> remove Info.plist also solve the problem for me. stackoverflow.com/questions/3095612/…
  • Dylan Ireland
    Dylan Ireland almost 8 years
    Awesome! Thank god
  • DevStarlight
    DevStarlight over 6 years
    I had the same issue duplicating my target from scratch and renaming it to info.plist instead of Info.plist
  • Skywalker
    Skywalker almost 5 years
    I have 3rd party framework included. I signed the framework using the command but still throwing this error..
  • Booyoung Park
    Booyoung Park about 4 years
    XCode 11 still has the same problem... This solved my problem. Thank you.
  • Curtis
    Curtis almost 4 years
    But I was told to add the binaries to solve "thread 1 signal sigabrt" error
  • bojan
    bojan over 2 years
    Thanks, this solved my issue when adding Google ads frameworkds!