unable to validate your application. the package does not contain an info.plist

应用某个版本开发完毕了,接下来就是要发布了。在用Xcode进行Archive后,选择Validate,结果出现了错误:unable to validate your application. the package does not contain an info.plist

错误截图如下:

于是便开始上网寻求解决方案,向小伙伴们寻求帮助。小伙伴们说都没遇到过相同的问题,都是一次Validate就通过了,没办法,只能求助于网络,但是网络上答案也是五花八门,有的甚至说这是Xcode6的bug。。。在几乎绝望的时候,突然看到一个答案,可能是info.plist文件中的某个参数缺失或者错误导致的,于是我用文本编辑器打开工程的info.plist文件,按照答案找到了关键参数:CFBundlePackageType,谷歌后得到的解释如下:

CFBundlePackageType

CFBundlePackageType(String- iOS, OS X) identifies the type of the bundle and is analogous to the Mac OS 9 file type code. The value for this key consists of a four-letter code. The type code for apps is APPL; for frameworks, it is FMWK; for loadable bundles, it is BNDL. For loadable bundles, you can also choose a type code that is more specific than BNDL if you want.All bundles should provide this key. However, if this key is not specified, the bundle routines use the bundle extension to determine the type, falling back to the BNDL type if the bundle extension is not recognized.

我看了一下我的CFBundlePackageType的值,竟然是BNDL。。。于是改为APPL,于是顺利Validate,顺利构建版本到了App Store,又get一个新技能。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值