首页 > 其他 > 详细

ios 打包 验证应用失败原因汇总

时间:2014-02-25 14:23:12      阅读:356      评论:0      收藏:0      [点我收藏+]

xcode在打包应用时出现的错误汇总如下:

点击Archive-》Validate时出现错误或者警告

1. 出现错误

this bundle is invalid when supporting iPhone,the executable must include support for the armv6 architecture,unless the UIRequireDeviceCapabilities include the ‘armv7‘ capability

解决方法:如下图

bubuko.com,布布扣


在Build Setting中设置Architectures为armv6 armv7,Valid Architectures为armv7。具体设置方法如下:

bubuko.com,布布扣


点击Other然后添加armv6和armv7,如下图

bubuko.com,布布扣


2. 出现警告

the app references non-public selectors in Payload/xxxx.app/xxxx:layerNames

注:xxxx为应用的名字,layerNames为出错的一个方法


解决方法:在xcode工程中搜索layerNames这个方法(也可以是其他的方法),看看是否是苹果的private方法或者有重复的文件包含了这个方法,删除掉重复的文件即可,然后重新打包。


3.出现警告

[WARN]Warning: Multiple build commands for output file /xxx 

原因:在xcode的资源里面包含了重复的文件

解决方法:

(1).选择你的工程 

(2).选择target 

(3).点击 Build Phases 

(4).展开Copy Bundle Resources 

(5).删除里面的刚才提示警告的文件,一般为红色的名字的文件(如果找不到,可以在搜索框中搜索该资源的名字)


ios 打包 验证应用失败原因汇总

原文:http://blog.csdn.net/chchong1234/article/details/19826425

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!