您的位置:首页 > 移动开发

the app xxx.app could not be added to your iTunes library because it is not a valid app

2012-10-23 09:17 1846 查看
现在可以双击HelloiPad.ipa文件,看看可以加入到iTunes了。
直接把.app直接拖到iTunes里或者打包成.ipa,双击加入iTunes中,都会提示错误:
The app “xxx.app” could not be added toyour iTunes library because it is not a valid app
但是使用手机91助手可以安装,通过手机91助手,对于已经授权的未越狱设备,也可以尝试安装,也能安装上,
对于这种错误,官网的解释如下: https://developer.apple.com/library/ios/#qa/qa1640/_index.html
If you get the error message "The application "<applicationName>.app" could not be added to your iTunes library because it is not a valid application." (Figure 1) when installing an Ad Hoc distribution version of an iPhone
application via iTunes, it's likely that the application's
Info.plist
is missing one or more required keys.

Figure 1  'Not a valid application' error from iTunes.

These required keys are:

Bundle identifier (
CFBundleIdentifier
, default value:
com.yourcompany.${PRODUCT_NAME:identifier}
)

Bundle version (
CFBundleVersion
, default value:
1.0
)

Bundle name (
CFBundleName
, default value:
${PRODUCT_NAME}
)

These keys are part of the default
Info.plist
, and may have been accidentally deleted. Add them back to your
Info.plist
and do a clean build of your project, then try the installation again. You add keys to your
Info.plist
in Xcode by selecting any line in the
Info.plist
, clicking the plus (+) button, and selecting the appropriate item (see
Figure 2).

Figure 2  Adding the 'Bundle Version' key to Info.plist.

依照上述处理后果然可以添加到iTunes中了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐