“could not inspect application package” Xcode
For some reason I imported some files in xcode (a third party SDK), and even if the app builds successfully I receive this error: Xcode Error Message: “could not inspect application package”. What does it mean? the app doesn’t run on a real device but works on a simulator IOS…
- View rotation notifications: why didRotateFromInterfaceOrientation: doesn't get called?
- Get indexPath of UITextField in UITableViewCell with Swift
- Why won't UIScrollView scroll fully after adding objects? Using storyboard, ARC, and Xcode 4.5.2
- Adding a spark particle sprite inside a view controller
- How to cache image and scale it correctly?
- AVPlayer doesn't show anything
8 Solutions Collect From Internet About ““could not inspect application package” Xcode”
It sounds like the third party files 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: Aaron Brager (XXXXXXXXXX)" nameOfAppToSign.app
Replace the example identity with your own (you can
man codesign to read more about this command).
You can circumvent this by not including the compiled code. It may not be necessary – are you including an example app which isn’t necessary for the framework to function?
If this answer doesn’t help, providing the name of the framework and showing which files you included would be helpful.
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).
I was getting the same error. I resolve it by removing third party library from “embbedded binaries” list and added into the “linked frameworks and libraries”.
I solved this just doing a Product->Clean after doing a lot of stupid stuff
I was importing a framework in my bridging header that I previously removed and Xcode gave me no error I guess because I didn’t call the framework anymore?
- remove the unused/nonexistent framework for bridging header
- quit Xcode
- find your project’s build folder and trash the contents of the Intermediates and Products folders
- open your project and run
This may be overkill but it works now. I hope this helps.
I got the same error. It was after I added a new, empty text file to my project (to keep some notes in) and named it Resources. Renaming it to Resourcesx fixed the problem but not until doing a Clean. I proved repeatedly that the filename “Resources” is a sufficient condition to cause the error.
This is the same experience of someone in
Xcode Error Message: "could not inspect application package"
In my case I was working with Cordova and Firebase. Remove all Google frameworks from
Embedded network (but leave them under
Linked Binary With Libraries) solve the problem.
Check whether you are embedding a static library into app package.
Some third party packages their static library SDK like a dynamic framework. Which is unsupported by Xcode (yet?). In that case you can be fooled and put them in “Embedded Binaries” list. Static libraries SHOULD NOT be in the list.
To check whether it is a static library, use
If it says something like
ar archive it’s a static library, and
dynamically linked shared library for dynamic library.
- Generic and (early?) binding in Swift 1.2
- Xcode 8 Swift 3 Pitch-altering sounds
- How to change the uitextview font size
- Is it advisable to add a UIViewController's view to another UIViewController's view?
- iOS 3DES with ECB return half correct data
- iOS: TestFlight beta app get new advertising identifier in each run
- Interface Builder broken on Framework projects using Cocoapods 1.0
- How to create a developer provisioning profile request in iOS Enterprise Account?
- Why is my library not able to expand on the CocoaPods website?
- Logging the class name of all UIViewControllers in a project
- presentViewController black background instead of transparent
- Observe CKRecord deletion via CKSubscription does not work
- Remove all whitespaces from NSString
- How to animate images using bitmaps / rgb data in iOS
- Xcode window positions when switching from dual to single monitor