现在可以双击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.
![](https://i-blog.csdnimg.cn/blog_migrate/fc2e4c2d0c475b802ff50d0dc845696d.png)
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).
![](https://i-blog.csdnimg.cn/blog_migrate/f4b0ef26475ab3c7ffa86cd58bb0c903.png)