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

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

问题描述

我使用的是 Xcode 4.2,并且在我的项目中添加了 AviarySDK 2.4.4.应用程序在模拟器 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-avjpbcnwjylobvgevipvsqtnopdates//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)

错误:strip/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,然后选择YES> 在复制期间剥离调试符号.
  5. 在下方您会看到使用分离条.选择是.
  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.

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

附注:

MacMini: Xcode 4.5
MacAir: Xcode 4.2

希望能帮到你

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

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