【问题标题】:Command xcodebuild failed with exit code 65 - NativeScript命令 xcodebuild 失败,退出代码为 65 - NativeScript
【发布时间】:2017-05-02 14:34:14
【问题描述】:

我有一个在桌面上运行的 NativeScript 项目。当我将它克隆到我的笔记本电脑时,我在运行 tns run ios --emulator 后收到以下错误消息:

Build settings from command line:
    ARCHS = i386 x86_64
    CODE_SIGN_IDENTITY = 
    CONFIGURATION_BUILD_DIR = /mypath/exampleproject/platforms/ios/build/emulator
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = iphonesimulator10.3
    SHARED_PRECOMPS_DIR = /mypath/exampleproject/platforms/ios/build/sharedpch
    VALID_ARCHS = i386 x86_64

xcodebuild: error: The workspace named "exampleproject" does not contain a scheme named "exampleproject". The "-list" option can be used to find the names of the schemes in the workspace.
Command xcodebuild failed with exit code 65

这可能是一个命名的事情吗?我开始为项目命名一件事,然后对其进行了更改,但由于问题而改回原来的名称。我将它克隆到我的桌面到另一个文件夹中,然后运行tns run ios --emulator 并遇到了同样的问题,所以这绝对不是硬件问题。

我一直在查看以下问题 here 的答案,但该解决方案似乎已集成到我正在运行的 NativeScript 版本中。

笔记本电脑:

NativeScript version 2.5.4 
OS Version Sierra 10.12.1

【问题讨论】:

    标签: ios xcode nativescript


    【解决方案1】:

    好的,这是世界上最简单的解决方案:

    该项目最初命名为 Exampleproject(第一个字母大写),我推送了代码(所以 git 上的项目是 exampleproject,当我克隆它时,生成的文件夹是 exampleproject,所以我只需将它克隆到 Exampleproject 中:

    git clone https://example@bitbucket.org/myprojects/exampleproject.git Exampleproject

    【讨论】:

      【解决方案2】:

      作为参考,我从 NativeScript 6.5 项目中的 VS Code 终端构建并使用命令“tns run ios --force”。

      我遇到了同样的错误,昨天它构建得很好,但今天它出错了。然后我决定打开 Xcode 并意识到它想要更新,那是因为我的 Mac 在夜间更新。更新 Xcode 后,构建和运行工作正常。

      【讨论】:

        猜你喜欢
        • 2020-05-10
        • 1970-01-01
        • 1970-01-01
        • 2020-09-02
        • 2019-08-28
        • 1970-01-01
        • 2019-07-29
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多