2017-05-02 147 views
0

我有一个我正在桌面上运行的NativeScript项目。当我把它克隆到我的笔记本电脑,我收到以下错误消息我运行tns run ios --emulator后:命令xcodebuild失败,退出代码65 - NativeScript

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 

回答

0

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

该项目最初被命名Exampleproject(首字母大写),我把代码(所以对Git项目是exampleproject,当我克隆它时,生成的文件夹是exampleproject,所以我只需要将它克隆到Exampleproject中:

git clone https://[email protected]/myprojects/exampleproject.git Exampleproject

相关问题