zoukankan      html  css  js  c++  java
  • 切换xcode版本 切换gcc 和argument list too long的bug

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

     

    还遇到这样一个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换了换 但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/

  • 相关阅读:
    React项目(垃圾分类后台管理)
    React 学习笔记
    xml学习
    .NET Core部署Windows服务
    .NET 生成PDF流
    无线数传电台是什么
    电流电压采集模块如何进行数据传输的
    Spring5快乐教程(十)AspectJ注解实现AOP
    Spring5快乐教程(九)注解编程详解
    Spring5快乐教程(八)注解编程详解
  • 原文地址:https://www.cnblogs.com/minggoddess/p/13840276.html
Copyright © 2011-2022 走看看