问题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
网友评论