【问题标题】:tns run ios --bundle Fails clang-4.0: error: cannot specify -o when generating multiple output filestns run ios --bundle Fails clang-4.0: error: cannot specify -o when generated multiple output files
【发布时间】:2019-11-29 18:03:23
【问题描述】:

得到这个错误 'clang-4.0: 错误: 生成多个输出文件时无法指定 -o'

每次我运行tns run ios --bundle

【问题讨论】:

    标签: ios macos nativescript nativescript-vue


    【解决方案1】:

    尝试使用以下命令运行:- tns run iOS --bundle --device deviceName

    否则打开终端并输入以下命令:-

    sudo update-alternatives --install \
    /usr/bin/clang++ clang++ /usr/lib/llvm-3.9/bin/clang++ 100
    
    sudo update-alternatives --install \
    /usr/bin/clang clang /usr/lib/llvm-3.9/bin/clang 100
    

    运行这两个命令后,构建能够继续。

    【讨论】:

    • 还是一样的错误``clang-4.0: error: cannot specify -o when generated multiple output files``
    【解决方案2】:

    然后重新安装Xcode

    conda deactivate
    

    为我工作。只需在终端上运行它,然后为新项目重新安装,对于旧项目,删除平台并重新添加它们

    【讨论】:

      猜你喜欢
      • 2012-10-15
      • 2022-12-27
      • 2019-02-14
      • 2015-12-20
      • 2019-09-12
      • 2018-01-29
      • 2022-12-16
      • 2023-03-28
      • 2022-12-28
      相关资源
      最近更新 更多