美文网首页
Xcode archive 失败 Build input fil

Xcode archive 失败 Build input fil

作者: _我和你一样 | 来源:发表于2020-04-26 16:44 被阅读0次

    在归档telegram源码tdesktop时,出现了如下错误:
    Xcode archive 失败 Build input file cannot be found
    其中报错的文件,我看看了,文件是存在的。但就是编译不过。
    试了很多种方式,最后把编译环境从默认但新的换成了之前的了。
    File > Project Settings > Workspace Settings > Legacy Build System


    编译这个C++版本的telegram客户端时还出现了很多其他的问题。其中最关键的一步是 安装qt,安装qt之后,会进行配置,再最后才能生成xcodeproject文件来供xcode打开。

    不过这个步骤可能会报错,主要可能是xcode环境的影响。如果需要使用指定版本编译就修改默认的xcode-build的命令行环境。
    编译tdesktop时,使用的xcode-build命令环境为 Xcode10.1,再配置出问题时可能需要切换到默认的xcode11.4.1
    选择指定的命令行工具

    sudo xcode-select -s /Applications/Xcode10.app/Contents/Developer
    

    重置到默认到工具

    sudo xcode-select -r
    

    相关文章

      网友评论

          本文标题:Xcode archive 失败 Build input fil

          本文链接:https://www.haomeiwen.com/subject/rmljwhtx.html