iOS开发日记39-上传ERROR-90535,90529,90049

今天博主有一个Xcode7上传app的ERROR的需求,遇到了一些困难点,在此和大家分享,希望能够共同进步.

本来刚刚升级成Xcode7.0,在使用application loader上传的时候,出现error,在网上查了一下,升级到Xcode7.1,还是有error

 

ERROR ITMS-90049:"This bundle is invalid. The bundle identifier contains disallowed characters. [See the section of the Application Programming Guide entitled The Application Bundle.]"

ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'ZCIos.app/TencentOpenApi_IOS_Bundle.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."

这两个error都是第三方的info.plist 文件问题,解决方法

在xcode左下角搜索info.plist 找到第三方的info.plist文件,如友盟中腾讯Api文件夹下的info.plist文件;

找到Bundle version字段 ,添加项目的build号 

添加Bundle identifier 字段,并对应添加项目的BundleId号; 

找到Bundle versions string, short字段 添加项目的版本号

 

ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 or later must be packaged as proper IPA files."

这是error是因为打包问题,解决方法:

原先上传的是.zip文件,现在需要上传 .ipa文件。也就是需要将打包成的app在打包成ipa文件就可以了。

具体步骤:

1、新建文件夹 Payload

2、将xcode编译好的app放在Payload文件夹中

3、压缩Payload文件夹为 .zip文件,然后重命名为 .ipa

 

还有一种打包方法是使用shell脚本

[python]  view plain copy
 
  1. #!/bin/bash  
  2.   
  3. APPNAME="appName"  
  4. ZIPNAME="zipName"  
  5. IPANAME="ipaName"  
  6.   
  7. mkdir ./ipa/Payload  
  8. cp -r ./${APPNAME}.app ./ipa/Payload  
  9. cd ipa  
  10. zip -r ${ZIPNAME} *  
  11. mv ${ZIPNAME}.zip ${IPANAME}.ipa  


将这个脚本放在Release-iphones文件夹下,运行这个脚本就可以将app转换为ipa。

 

 

转载于:https://www.cnblogs.com/Twisted-Fate/p/4917675.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值