Xcode: Could not inspect the application package

后端 未结 19 1151
孤街浪徒
孤街浪徒 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:10

    I've seen this error before when there is something in the entitlements file but is not enabled for the app id in the provisioning centre.

    Specifically I had HealthKit enabled in the entitlements file but not configured for the application identifier.

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

    I had the same issue, And was unable to install the ipa. It always ended with an error "Could not inspect the application package." and some warnings in device console

    Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options   dictionary when installing an app.
    Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: installing app with unknown bundleID
    .
    .
    Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 -[MIBundle _validateWithError:]: 28: Failed to load Info.plist from bundle at path
    Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 + [MIInstallable installablesAtURL:packageFormat:userOptions:error:]: Failed  to create bundle for …
    

    After spending hours, I got it fixed by adding the "Application requires iPhone environment" in info.plist

    <key>LSRequiresIPhoneOS</key>
    <true/>
    
    0 讨论(0)
  • 2020-12-08 10:13

    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.

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

    If you have moved or copied a folder named resources or resource into your project, try renaming it. Then perform a clean.

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

    I got this when a custom built .framework was missing its Info.plist.

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

    Found a solution by adding the Framework to General -> Linked Frameworks And Libraries and setting the status to optional. (Leave the embedded binaries blank)

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