生成存档时出错 [英] Error in generating Archives

查看:154
本文介绍了生成存档时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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:

第一种方法:

  1. 转到构建项目的设置
  2. 在搜索栏中键入Strip.
  3. Strip Debug Symbols During Copy下,您将找到Debug,在其下您将找到Any SDK.
  4. Any SDK中选择NO,在Debug中选择YES,然后在Strip Debug Symbols during copy中选择YES.
  5. 在下面有些地方您会找到Use Separate Strip.选择是.
  6. 检查Strip Style应该保留为All Symbols [如果不是,则将其更改为.]
  1. Go to build settings of your project
  2. Type Strip in the search Bar.
  3. Under Strip Debug Symbols During Copy, you shall find Debug and under that you shall find Any SDK.
  4. Select NO in Any SDK, select YES in Debug and select YES in Strip Debug Symbols during copy.
  5. A little below you shall find Use Separate Strip. Select YES.
  6. Check that Strip Style should remain All Symbols [If not then change it to that].

第二种方法:

由于您的错误也提到了派生数据,因此它们也可能会重复您的派生数据.从派生数据文件夹中删除您的项目文件. 如果您不知道派生数据文件夹在哪里,请对其进行搜索.

Since your error also mentions derived data, their might me duplicacy of your derived data as well. Delete Your project file from the derived data folder. If you don't know where the derived data folder is, Google it.

我在当前项目中使用鸟舍.我有一台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

希望这会有所帮助

这篇关于生成存档时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆