2017-05-02 85 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

相關問題