2016-08-01 63 views
2

1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 2: 1> : command not found 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 3: //: is a directory 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 4: //: is a directory 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 5: //: is a directory 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 6: prepare: command not found 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 6: //: is a directory 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 7: //: is a directory 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 8: //: is a directory 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 9: //: is a directory 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 10: 1> : command not found 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 11: syntax error near unexpected token (' 1> /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js: line 11: var fs = require('fs'); 1> ' 1> Command finished with error code 2: /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp 1> 爲 buildNumber 583 生成應用失敗: Hook failed with error code 2: /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js 1>MSBUILD : cordova-build error : Error: 生成服務器 生成失敗,錯誤 Hook failed with error code 2: /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js 中的遠程生成錯誤 - 1 1> Error 生成服務器 生成失敗,錯誤 Hook failed with error code 2: /Users/hu/.taco_home/remote-builds/taco-remote/builds/583/cordovaApp/hooks/after_prepare/010_add_platform_class.js 中的遠程生成錯誤 - {1}鉤,錯誤代碼2

失敗,當我啓動遠程代理在安全模式下的vs2015,調試模式:iphone6s

+0

嘗試複製/粘貼掛鉤文件的新副本。它似乎有無效的字符,如錯誤的行結尾。或者,在VS中自行更改結束符。 –

+0

@hochiaozhong你有沒有想過呢? –

回答

0

這似乎是一個錯誤的行尾的問題。在OS/X方面你需要LF行尾,然而010_add_platform_class.js文件似乎有CRLF行尾。

因此,您需要將文件010_add_platform_class.js的行結尾更改爲LF,而不是Windows計算機上的CRLF。

由於Visual Studio沒有改變行結尾的選項,據我所知,您可以使用Visual Studio Code來做到這一點。在VS Code中,狀態欄右下角有一個標籤,表示CRLF。當你點擊你可以改變行結束符爲LF。