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

现在可以双击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中了


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值