[英]Xcode build error linker command failed with exit code 1
Build Unity project, add other libraries, Xcode return error. 编译Unity项目,添加其他库,Xcode返回错误。 How fix it? 如何解决?
Make sure you're opening the .xcworkspace and not the .xcproject file in Xcode. 确保在Xcode中打开.xcworkspace而不是.xcproject文件。 Close the project and open .xcworkspace 关闭项目并打开.xcworkspace
选择目标并转到BuildSettings并搜索Enable Bitcode标志并将其设置为No。
只需尝试清理构建(命令+ shift + k)并再次构建(命令+ b)即可。
它通常会写出错误,修复它,然后清理构建您的项目:)
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. 就我而言,在我从项目中删除GoogleMobileAds.framework并通过直接将其拖放到“项目目标”组下“常规”标签上的“链接的框架和库”部分再次添加后,问题消失了。 Hope this helps someone with the issue. 希望这对解决这个问题的人有所帮助。
更改目标,例如IOS 5或4。它将支持您添加的库
I also had such a problem, but only Xcode 10.2.1 had a problem, and Xcode 11.1 had no such problems. 我也遇到了这样的问题,但是只有Xcode 10.2.1有问题,而Xcode 11.1没有此类问题。 I solved this problem Select Target, go to BuildSettings and Search for Enable Bitcode flag and set it to No. 我解决了这个问题。选择目标,转到BuildSettings并搜索Enable Bitcode标志并将其设置为No。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.