我可以從命令行成功運行Android應用程序的構建。從命令行觸發iOS Visual Studio Cordova構建
對於iOS生成失敗使用此命令行:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" "<Solution>.sln" /rebuild "Distribution|iOS" /project "<projectName>" /projectconfig "Distribution|iOS"
這是錯誤:
1>MSBUILD : cordova-build error BLD301: Error : BLD00301 : A remote iOS build agent has not been configured. Configure one in Tools > Options > Tools for Apache Cordova > Remote Agent Configuration. For details and alternatives see http://go.microsoft.com/fwlink/?LinkID=511904
我在Visual Studio中配置的遠程服務器,但顯然這不是被拾起。有沒有辦法將這個配置提供給批量構建?
你在哪裏添加這些命令?在Visual Studio命令提示符下? – tjvg1991 2015-12-15 15:20:40
是的,就在運行msbuild之前在命令提示符下構建Cordova項目之前。 – Compulim 2015-12-16 02:50:33