xcode Lipo 错误:无法打开输入文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17791213/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:37:15  来源:igfitidea点击:

Lipo Error: can't open input file

xcodelipo

提问by Snowcrash

I'm getting this error:

我收到此错误:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo: can't open input file: /Users/snowcrash/Library/Developer/Xcode/DerivedData/MyApp-awldrudjpictkjfutpthiwoocing/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/Objects-normal/armv7/MyApp (No such file or directory)

Any suggestions?

有什么建议?

回答by gunas

Go to Project target-> Build setting-> Build Active Architecture only and set this Build Active Architecture only to YES. And it's working fine now..

转到 Project target-> Build setting-> Build Active Architecture only 并将此 Build Active Architecture only 设置为 YES。它现在工作正常..

回答by Pradeep Kachhawaha

I also got the same problem. I was using cocoapods, and some other person committed the code after adding new pods with different cocoapods version. you need to clean the project again installing the pods and run the xcode.

我也遇到了同样的问题。我正在使用 cocoapods,其他人在添加具有不同 cocoapods 版本的新 pod 后提交了代码。您需要再次清理项目,安装 pod 并运行 xcode。

回答by user3754239

In my case, it was a stale library. I had -xxxunusedlibraryin 'Other linker flags' in Build Settings.

就我而言,这是一个陈旧的图书馆。我-xxxunusedlibrary在构建设置中的“其他链接器标志”中有。

The library had been removed but the settings didn't clear automatically.

该库已被删除,但设置并未自动清除。