https://blog.csdn.net/Nathan1987_/article/details/90260451
顯示xcode版本
xcode-select -p
顯示gcc版本
gcc --version
切換xcode版本
sudo xcode-select -s /Applications/Xcode113.app/Contents/Developer
裝多個xcode新的會把舊的環境變量覆蓋 用新的gcc就不對了
會有很多奇怪的編譯錯誤
切回去就好了 用哪個切哪個
https://docs.unrealengine.com/en-US/Platforms/Linux/GettingStarted/index.html
切完點這個
GenerateProjectFiles.command
遇到這樣一個error
Command XcodeBuild.sh failed to exit code 6
link failed
-weak_libray file not found
這個error吧。似乎是直接點run導致的
先點product-build
success之後再點
product-run
就成功了
另一個error
ShaderCompileWorker[1347:13092] flock failed to lock maps file: errno = 35
有個messagebox說路徑太長不合法 點確認就可以了 這個error就能過了