Xcode打包时,Product-->Archive,此时如果直接点击Upload To App Store,如果项目有问题,可能会一直停在Uploading Archive(Authenticating with the iTunes Store..)进度条无变化,所以最好先点击Validate验证下,验证成功最好,如果有错误则会有错误提示方便解决问题。
其中打包时有遇到如下问题:
(1)Invalid Image path - No Image found at the path referenced under key ‘CFBundleIconFiles’:
解决:全局搜索,删除 CFBundleIconFiles无效信息或根据项目实际情况补全
(2)Invalid Info.plist value. The Info.plist key UIBackgroundModes contains an invalid value: For more information, refer to the Information Property List Key Reference
解决:全局搜索,删除 info.plist文件中UIBackgroundModes 下无效信息或根据项目实际情况补全
(3)An error occurred during validation:
解决:重新验证,验证成功
(4)Redundant Binar Upload. There already exists a binary upload with build ‘1.0’ for version ‘1.0’
解决:提高构建版本号build
(5)生成的API分析文件太大。我们无法在交付前验证您的API使用信息。这只是通知信息。(“The binary you uploaded was invalid”)
解决:直接忽略