0

Macbook 全球安装

  1. xcode -v8.2
  2. 科尔多瓦-v6.4.0
  3. npm -v3.10.10
  4. 节点-v7.2.1
  5. 远程构建-v2.1.2

笔记本电脑

在更新之前我能够正常构建npm/node/cordova/xcode。我不确定哪些版本以前可以工作,现在在尝试时出现以下错误$remotebuild test --device

尝试remotebuild test --device在 Macbook 上运行时出现以下错误消息:

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$ 

我尝试过的事情:

  1. 新的配置文件
  2. 新证书
  3. Xcode 中的 Keychain / Profiles 中删除和重新生成的密钥
  4. 删除了 .taco-home/node_modules 中的缓存文件
  5. remotebuild 重置证书
  6. remotebuild 生成证书
  7. 平台卸载重装
  8. remotebuild 卸载并重新安装
  9. 后退和前进多个版本

视窗机

尝试运行远程构建时,我也从 Windows 机器收到错误 65...(SDK 'iOS 10.0' 中的产品类型 'Application' 需要代码签名)- 代码签名工作正常,直到尝试更新node/npm/cordova

4

2 回答 2

0

我在这里找到了答案:

  1. 删除了我添加的一个钩子作为修复失败...
  2. 在科尔多瓦工具和视觉工作室上进行修复
  3. 最后修复:从以下 URL 中提到的 build.json 中删除了前 3 个字节。
  4. 像魅力一样打造 <3

如果您的 build.json 文件在开始时有字节顺序标记,则无法通过 Visual Studio Cordova 构建签名的 android 包。

-- 我应该提到,虽然上面的帖子标题提到了 android,但我是专门为 IOS 构建的,这可能会导致任何处理这个问题的人感到困惑...... Build.json 指的是 android 和 ios 平台。

于 2016-12-21T14:36:09.947 回答
0

使用 remotebuild,当你看到:

“/usr/local/lib/node_modules/remotebuild/node_modules/taco-utils/node_modules/applicationinsights/AutoCollection/Exceptions.js:25 抛出错误;”

您可以通过以下方式简单地删除“~/.taco_home/RemoteBuild.config”:

rm ~/.taco_home/RemoteBuild.config

然后再次运行 remotebuild,您应该会看到问题消失了。我可以确认这适用于本地 Mac 以及 cordova remotebuild 云服务Macincloud.com

于 2016-12-29T19:42:20.807 回答