问题描述
我正在使用Xcode 4.2,并且在我的项目中添加了AviarySDK 2.4.4.应用程序在Simulator 5.0和4.3中运行良好.我也在具有ios 4.1的设备上进行了测试.所以我想为我的客户生成.ipa文件.但是由于某种原因它无法生成存档.它给出了以下错误
I m using Xcode 4.2 and i have add AviarySDK 2.4.4 in my project.Application runs fine in Simulator 5.0 and 4.3. I also test it on device having ios 4.1. So i want to generate .ipa file for my client. But by some reason it can not generate Archives.It gives following error
"/usr/bin/strip -S/Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources -o/Users/User/Library/Developer/Xcode/DerivedData/WDYWT-avjpbcnwjylobvgevidives/WDYWT/InstallationBuildProductsLocation/Applications/WDYWT.app/AviarySDKResources.bundle/AviarySDKResources
"/usr/bin/strip -S /Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources -o /Users/User/Library/Developer/Xcode/DerivedData/WDYWT-avjpbcnwjylobvgevipvsqttnopd/ArchiveIntermediates/WDYWT/InstallationBuildProductsLocation/Applications/WDYWT.app/AviarySDKResources.bundle/AviarySDKResources
/usr/bin/strip:用于架构armv7对象:/Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources格式错误的对象(未知的加载命令10)
/usr/bin/strip: for architecture armv7 object: /Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources malformed object (unknown load command 10)
错误:删除/Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources:/usr/bin/strip退出并显示为1"
error: strip /Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources: /usr/bin/strip exited with 1"
任何帮助都将非常有用.预先非常感谢.
Any help will really great. Many thanks in advance.
推荐答案
如果项目中有重复的调试符号,通常会导致条带错误.只需尝试以下操作:
Strip errors are generally caused if you have duplicate debugging symbols in your project. Just try the following:
第一种方法:
- 转到构建项目的设置
- 在搜索栏中键入
Strip
. - 在
Strip Debug Symbols During Copy
下,您将找到Debug
,在其下您将找到Any SDK
. - 在
Any SDK
中选择NO
,在Debug
中选择YES
,然后在Strip Debug Symbols during copy
中选择YES
. - 在下面有些地方您会找到
Use Separate Strip
.选择是.
- 检查
Strip Style
应该保留为All Symbols
[如果不是,则将其更改为.]
- Go to build settings of your project
- Type
Strip
in the search Bar. - Under
Strip Debug Symbols During Copy
, you shall findDebug
and under that you shall findAny SDK
. - Select
NO
inAny SDK
, selectYES
inDebug
and selectYES
inStrip Debug Symbols during copy
. - A little below you shall find
Use Separate Strip
. Select YES.
- Check that
Strip Style
should remainAll Symbols
[If not then change it to that].
第二种方法:
我在当前项目中使用鸟舍.我有一台Mac Mini和一台MacAir [在家工作].我遇到了同样的鸟舍脱衣问题,我使用上述第一种方法解决了这个问题.
I am using aviary in my current project. I have a Mac Mini and a MacAir [for work at home].I was facing the same strip issues with aviary which I resolved using the first method mentioned above.
我花了一个星期的时间才弄清这是因为我是一个相对较新的开发人员,在航空论坛上也没有提及此问题.
It took me a week to figure this out cuz i am a relative newbie in development and nothing regarding this issue has been mentioned in aviary forums as well.
PS:
MacMini: Xcode 4.5
MacAir: Xcode 4.2
希望这会有所帮助
这篇关于生成存档时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!