ios Xcode 构建错误链接器命令失败,退出代码为 1
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42624680/
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
Xcode build error linker command failed with exit code 1
提问by Ihor Tovkach
Build Unity project, add other libraries, Xcode return error. How fix it?
构建Unity工程,添加其他库,Xcode返回错误。怎么修?
回答by Thiago Bueno
Make sure you're opening the .xcworkspace and not the .xcproject file in Xcode. Close the project and open .xcworkspace
确保您在 Xcode 中打开 .xcworkspace 而不是 .xcproject 文件。关闭项目并打开 .xcworkspace
回答by Bikshapathi Kumbala
Select your target and go to BuildSettings and Search for Enable Bitcode flag and set it to No.
选择您的目标并转到 BuildSettings 并搜索 Enable Bitcode 标志并将其设置为 No。
回答by Jan sebastian
just try to clean the build (command + shift + k) and build (command + b) again.
只需尝试清理构建(command + shift + k)并再次构建(command + b)。
回答by Artashes Ghazaryan
I also had such a problem, but only Xcode 10.2.1 had a problem, and Xcode 11.1 had no such problems. I solved this problem Select Target, go to BuildSettings and Search for Enable Bitcode flag and set it to No.
我也遇到过这样的问题,但是只有Xcode 10.2.1有问题,Xcode 11.1没有这样的问题。我解决了这个问题 选择目标,转到 BuildSettings 并搜索 Enable Bitcode 标志并将其设置为 No。
回答by ZahraAsgharzade
It usually write the error , fix it and then clean build your project :)
它通常会写入错误,修复它,然后清理构建您的项目:)
回答by programmer
In my case, the problem disappeared after I removed GoogleMobileAds.framework from the project and added it again by directly dragging and dropping it to the "Linked frameworks and Libraries" section on the "General Tab" under Project Target group. Hope this helps someone with the issue.
就我而言,在我从项目中删除 GoogleMobileAds.framework 并通过直接将其拖放到项目目标组下“常规选项卡”上的“链接框架和库”部分再次添加后,问题就消失了。希望这可以帮助解决问题的人。
回答by Subathra D
Change the Target like IOS 5 or 4.It will support the library which you added
像 IOS 5 或 4 一样更改目标。它将支持您添加的库