美文网首页iOS精品
解决M1 Mac 编译失败

解决M1 Mac 编译失败

作者: tom__zhu | 来源:发表于2022-06-08 18:26 被阅读0次

问题1

M1 Mac pro Xcode编译工程报错libPods-ProjectName.a' is missing one or more architectures required by this target: x86_64

解决方案

For me opening Xcode in Rosetta mode was what solved the problem. You may have to remove DerivedData also at: /Users/<username>/Library/Developer/Xcode/DerivedData

You can install Rosetta by running: softwareupdate --install-rosetta

Also it seems OS prompts you to install if trying to open an app that requires Rosetta: https://support.apple.com/en-us/HT211861

参考

https://stackoverflow.com/a/69294780



问题2

M1 Mac pro Xcode改为 Rosetta,编译Playground报错
Failed to launch process. Failed to attach to stub for playground execution: error: debugserver is x86_64 binary running in translation, attached failed..

解决方案

It seems that you should turn off running with Rosetta for Xcode.

参考

https://stackoverflow.com/questions/69829731/xcode-playground-failed-to-launch

相关文章

网友评论

    本文标题:解决M1 Mac 编译失败

    本文链接:https://www.haomeiwen.com/subject/hgnumrtx.html