命令/ usr / bin / lipo失败,退出代码1错误

时间:2012-02-08 07:24:45

标签: objective-c ios xcode

我终于完成了我的应用程序,当这突如其来的错误袭击我时,我正准备上传,我不知道该怎么做。我已经检查了其他帖子,说要更改代码签名身份,我已经这样做但没有运气。我尝试了身份中的每一个选项,没有任何变化。如果有人知道发生了什么,我会非常感激,因为我只是想提交我的应用程序。

以下是erorr日志中的其他内容:

/usr/bin/lipo: /Users/teddy/Library/Developer/Xcode/DerivedData/grocery_stores-dcyubhefhrcjhtcxbhldfpukdgdz/Build/Intermediates/grocery stores.build/Release-iphoneos/grocerystores.build/Objects-normal/armv7/grocery stores and /Users/teddy/Library/Developer/Xcode/DerivedData/grocery_stores-dcyubhefhrcjhtcxbhldfpukdgdz/Build/Intermediates/grocery stores.build/Release-iphoneos/grocery stores.build/Objects-normal/armv7/grocery stores have the same architectures (armv7) and can't be in the same fat output file

Command /usr/bin/lipo failed with exit code 1

5 个答案:

答案 0 :(得分:19)

我通过更改Project>中找到的有效架构的值来解决了这个问题。构建设置>从默认“armv6 armv7”到“armv7”的架构。希望这可以帮助。

答案 1 :(得分:4)

如果没有运行命令,很难看到究竟发生了什么。它看起来像你指定两次相同的输入文件,即arm7版本和lipo告诉你,你不能添加2 arm7版本的杂货店到通用文件。你能输入你正在运行的整个lipo命令吗?来自lipo man页面:         -创建                 获取输入文件(或文件)并从中创建一个通用输出文件。 你可能在这里列出两次相同的文件吗?

答案 2 :(得分:1)

尝试将构建目标更改为模拟器构建,清理并重新运行。

答案 3 :(得分:0)

在我的情况下,我使用pods和oped projectFile而不是项目工作区

答案 4 :(得分:0)

在我的情况下,它是以发布方案在模拟器上构建项目,将其更改为调试后就可以使用。