Xcode Error Message: “could not inspect application package”

佐手、 提交于 2019-11-27 04:37:02
Someone13

For me, I copied a folder into Xcode 4.6.2 with the name "Resources". When Xcode asked, I created the folder references for any added folders.

Every time I did this, I would have to goto the Derived applications directory, and delete the build directory for my project to get it working again.

Solution: Do not copy a folder by reference into Xcode with the name "Resources". Rename it to something else other than Resources.

Very annoying error.

also try just doing a Product->Clean

When I replaced the 'Resources' folder on the xcode, by mistake the below option was selected.

Create folder references for any added folders

But the correct option should be,

Create groups for any added folders

Taking care of the above option is important point in saving time ad fixing the above issue. (It is one of the possibilities for getting this error).

Cayman

I have Created a group named "Resources", and then select all resource under Resources folder and select "Create folder references for any added folders"

the problem is with your bundle name. make sure you assign an bundle id to project, target and info.plist. i had the same issue, it fixed after adding the bundle id :)

Swift Framework

For me the problem was using a custom Swift framework with files structure similar to the following:

Taken from: https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html

It turns out that with Swift the right framework structure looks like this:

After I changed the directory structure to the latter - everything worked as expected

Tim Friedland

Uncheck the Target Membership in .plist

.

I had two issues that solved the problem for me. First I had configured in XCodes copy files section to copy the ResourceRules.plist and on the other hand there was also added a non-third party ios framework in the copy files section (Storekit in my case). After removing that problem was solved.

I had the same issue, with an over-the-air Enterprise app, that was working prior to updating to XCode 6.1.

I ran down the usual suspects (Bundle identifier, a file or directory named "resources", Cleaning and Building, etc.). No dice.

Here's what fixed my issue - I renamed my application's .plist file, and copied in a .plist file from a project that was working fine after the XCode update.

Recompiled. Worked.

I didn't do a line by line compare to see what changed... because I had already wasted a day on this. Maybe later. But not today.

Hope this helps someone else NOT spend a wasted afternoon.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!