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

切换xcode版本 切换gcc 和argument list too long的bug

 

切完点这个

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就能过了

 

还遇到这样一个error

unable to execute command: posix_spawn failed: Argument list too long

 

DerivedDataBackendGraph

这货我又遇到了 和放的路径深没有关系

(这种方式测过没用 

project.build.cs

bLegacyPublicIncludePaths = false)

clang: error: unable to execute command: posix_spawn failed: Argument list too long

切换xcode版本 切换gcc 和argument list too long的bug

 

 那些都没变 只是xcode换了换 但11.3之前用过也是可以的

debugGame的ios包 换成debug能过这个bug。。。。。good luck

 像这个bug

Some people get the following error when building a bigger component using Clang:

clang: error: unable to execute command: posix_spawn failed: Argument list too long
clang: error: linker command failed due to signal (use -v to see invocation)

It looks like Clang expands the @argfile before calling the linker and ends up passing everything to the linker as a single command line.

就是这个bug

I appear to be experiencing a similar issue. The linking command using clang is 50k characters due to the presence of many object files and fails when called from Gradle. However, calling clang++.exe @argumentsFile succeeds.

https://issues.gradle.org/browse/GRADLE-3363?page=com.atlassian.jirafisheyeplugin%3Acrucible-issuepanel

 

https://developer.apple.com/support/xcode/

相关文章:

  • 2021-06-12
  • 2022-12-23
  • 2022-02-07
  • 2021-07-27
  • 2022-12-23
  • 2021-12-31
  • 2021-11-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-12-25
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
相关资源
相似解决方案