Xcode: Could not inspect the application package

后端 未结 19 1148
孤街浪徒
孤街浪徒 2020-12-08 09:57

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\"

相关标签:
19条回答
  • 2020-12-08 10:00

    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.

    0 讨论(0)
  • 2020-12-08 10:01

    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 讨论(0)
  • 2020-12-08 10:02

    I had a potentially similar problem, hardware only, when I had an app which was given entitlement to run in the background and had run previously on the phone. For such apps, I found the Xcode deployment to phone broken and had to change the bundle identifier to unjam the deployment.

    0 讨论(0)
  • 2020-12-08 10:07

    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 讨论(0)
  • 2020-12-08 10:08

    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).

    0 讨论(0)
  • 2020-12-08 10:09

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

    0 讨论(0)
提交回复
热议问题