我能够在更新npm/node/cordova/xcode
之后构建正常。我不确定以前哪些版本正常工作,现在尝试$remotebuild test --device
时出现以下错误
尝试在Macbook上运行remotebuild test --device
时会出现以下错误消息:
users-MacBook-Pro-2:piapp userUser$ remotebuild test --device
Warning: No server modules selected. Defaulting to configuration "modules": {"taco-remote": { "mountPath": "cordova"} }
Remote build server listening on [https] port 3000
Please view/edit server configuration at /Users/userUser/.taco_home/RemoteBuild.config. You many need to run 'remotebuild saveconfig' to generate it. You will have to restart the server if you update the server configurations.
New build request submitted:
/build/tasks/?vcordova=5.4.0&vcli=1.3.5&cfg=debug&command=build&options=--device
{"host":"users-macbook-pro-2.local:3000","connection":"close","transfer-encoding":"chunked"}
Build will be executed under: /Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042
Saving build request payload to : /Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042
Saved uploaded build to /Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/upload_41042.tgz
POST /cordova/build/tasks/?vcordova=5.4.0&vcli=1.3.5&cfg=debug&command=build&options=--device 202 255.720 ms - 671
Extracted app contents from uploaded build request to /Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/cordovaApp. Requesting build.
Taking 41042 as current build
Done with current build. Checking for next build in queue.
1...
GET /cordova/build/tasks/41042 200 4.459 ms - 999
Error: taco-remote test failed.
Build Failed: {"vcordova":"5.4.0","vcli":"1.3.5","cfg":"debug","command":"build","options":"--device","status":"Error","buildCommand":"build","buildPlatform":"ios","configuration":"debug","buildDir":"/Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042","buildNumber":41042,"logLevel":0,"submissionTime":"2016-12-20T14:37:46.155Z","changeList":null,"buildSuccessful":false,"messageId":"BuildFailedWithError","messageArgs":["/Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/cordovaApp/platforms/ios/cordova/build: Command failed with exit code 2"],"message":"Build failed with error /Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/cordovaApp/platforms/ios/cordova/build: Command failed with exit code 2","tgzFilePath":"/Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/upload_41042.tgz","appDir":"/Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/cordovaApp","statusTime":"2016-12-20T14:37:50.036Z","appName":"HelloCordova"}
/usr/local/lib/node_modules/remotebuild/node_modules/taco-utils/node_modules/applicationinsights/AutoCollection/Exceptions.js:25
throw error;
^
Error: Build Failed: {"vcordova":"5.4.0","vcli":"1.3.5","cfg":"debug","command":"build","options":"--device","status":"Error","buildCommand":"build","buildPlatform":"ios","configuration":"debug","buildDir":"/Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042","buildNumber":41042,"logLevel":0,"submissionTime":"2016-12-20T14:37:46.155Z","changeList":null,"buildSuccessful":false,"messageId":"BuildFailedWithError","messageArgs":["/Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/cordovaApp/platforms/ios/cordova/build: Command failed with exit code 2"],"message":"Build failed with error /Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/cordovaApp/platforms/ios/cordova/build: Command failed with exit code 2","tgzFilePath":"/Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/upload_41042.tgz","appDir":"/Users/userUser/.taco_home/remote-builds/taco-remote/builds/41042/cordovaApp","statusTime":"2016-12-20T14:37:50.036Z","appName":"HelloCordova"}
at Request._callback (/usr/local/lib/node_modules/remotebuild/node_modules/taco-remote/lib/selftest.js:104:46)
at Request.self.callback (/usr/local/lib/node_modules/remotebuild/node_modules/taco-remote/node_modules/request/request.js:121:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/usr/local/lib/node_modules/remotebuild/node_modules/taco-remote/node_modules/request/request.js:985:14)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/remotebuild/node_modules/taco-remote/node_modules/request/request.js:936:12)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
users-MacBook-Pro-2:piapp userUser$
我尝试过的事情:
我在尝试运行远程构建时也从Windows机器获取错误65 ...(SDK'iOS 10.0'中的产品类型'Application'需要代码签名)
- 代码签名工作正常,直到尝试更新node/npm/cordova
答案 0 :(得分:0)
我在这里找到了答案:
Cannot build signed android package through visual studio cordova如果你的build.json文件在开头有一个字节顺序标记。
- 我应该提到虽然上面的帖子标题提到了android我是专门为IOS构建的,这可能会导致混淆任何人也处理这个问题... Build.json指的是android和amp; ios平台。
答案 1 :(得分:0)
使用remotebuild,当你看到:
&#34; /usr/local/lib/node_modules/remotebuild/node_modules/taco-utils/node_modules/applicationinsights/AutoCollection/Exceptions.js:25 throw error;&#34;
你可以简单地删除&#34;〜/ .taco_home / RemoteBuild.config&#34;由:
rm~ / .taco_home / RemoteBuild.config
再次运行remotebuild,您应该看到问题消失了。我可以确认这适用于本地Mac以及cordova remotebuild云服务Macincloud.com