我有XCode 6(版本6.0.1)的最终版本。在我的项目中,运行时遇到问题。
我得到了:
"应用程序安装失败 - 无法检查应用程序包。"
如果我再次运行项目,它就可以正常运行。但是,每隔一次运行就会出现这个错误,紧接着应用程序就可以正常运行。
在XCode 5中没有这个问题。
我遇到了同样的问题,无法安装ipa文件。它总是以错误信息“无法检查应用程序包”和一些设备控制台警告结束。
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 …
花了几个小时,我通过在info.plist中添加“应用程序需要iPhone环境”来修复了它。
<key>LSRequiresIPhoneOS</key>
<true/>
resources
或resource
的文件夹到您的项目中,请尝试重命名它。然后执行clean
操作。