简体   繁体   English

Xcode构建错误链接器命令失败,退出代码为1

[英]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。

屏幕截图xcode

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 铛:错误:链接器命令失败,退出代码为1,Xcode链接器错误 - clang: error: linker command failed with exit code 1, Xcode Linker Error xcode ios build linker命令失败,退出代码 - xcode ios build linker command failed with exit code xcode-链接器命令失败,退出代码为1-构建设置 - xcode - linker command failed with exit code 1 - build settings 如何解决 Flutter Xcode 构建中的“错误:链接器命令失败,退出代码为 1”? - How to solve "error:linker command failed with exit code 1" in Flutter Xcode build? Unity 3D iOS游戏构建失败Xcode 8.32:“clang错误链接器命令失败,退出代码为1” - Unity 3D iOS Game Build Fail Xcode 8.32: “clang error linker command failed with exit code 1” Xcode构建错误链接器命令失败,退出代码为1(使用-v查看调用) - Xcode build error Linker command failed with exit code 1 (use -v to see invocation) Xcode:安装 pod 后构建失败(错误:链接器命令失败,退出代码 1) - Xcode: Build fails after pod installation (error: Linker command failed with exit Code 1) xcode错误:链接器命令失败,退出代码为1 googletoolboxmac - xcode error: linker command failed with exit code 1 googletoolboxmac Xcode 8.3存档错误:链接器命令失败,退出代码为1 - Xcode 8.3 Archive error: Linker command failed with exit code 1 链接器命令失败,Xcode项目中出现退出代码1错误 - Linker command failed with exit code 1 error in Xcode project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM