Could not inspect the application package

左心房为你撑大大i 提交于 2019-12-07 11:44:52

问题


I have final version of XCode 6 (version 6.0.1). In my project, I have problem when running it. I got

"App installation failed - Could not inspect the application package."

If I run project again, it runs ok. Another run, problem again... etc. So every second run ends in this error, right after that application run just fine. I have no problem in XCode 5.


回答1:


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




回答2:


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/>


来源:https://stackoverflow.com/questions/25935228/could-not-inspect-the-application-package

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