VS2017 cordova iOS版本失败,没有错误代码

时间:2017-05-12 16:52:15

标签: cordova visual-studio-2017 visual-studio-cordova

当尝试使用remoteserver在Mac上使用visual studio 2017 for iOS构建cordova应用程序时,构建失败并且没有提供失败的原因。

按照以下过程完成构建 Visual Studio Tools for Apache Cordova: iOS Guide在非安全模式下使用remoteserver。

远程服务器,jnode和xcode已在Mac上更新。之前从VS2015开始使用类似的设置构建了相同的应用程序。

VS输出窗口中的最后几个条目是:

Wrote out iOS Bundle Identifier "com.bytebloc.sked" and iOS Bundle Version "2.1" to /Users/ccs/.taco_home/remote-builds/taco-remote/builds/600/cordovaApp/platforms/ios/#TestApp#/#TestApp#-Info.plist
Set TARGETED_DEVICE_FAMILY to "1,2".
iOS Product Name has not changed (still "#TestApp#")
Updating icons at platforms/ios/#TestApp#/Images.xcassets/AppIcon.appiconset/
Updating splash screens at platforms/ios/#TestApp#/Images.xcassets/LaunchImage.launchimage/
Prepared iOS project successfully
Executing script found in config.xml for hook "after_prepare": hooks/xcode8.js
Checking config.xml for saved plugins that haven't been added to the project
Saving ios@4.2.0 into platforms.json
No scripts found for hook "after_platform_add".
Failed to build app for buildNumber 600:

remoteserver窗口显示以下条目:

taco-remote-multiplexer downloaded and installed.
Error: ENOENT: no such file or directory, open '/Users/ccs/.taco_home/node_modules/taco-remote-multiplexer/latest/node_modules/taco-remote-multiplexer/tacoRemoteMultiplexer.js'
Build will be executed under: /Users/ccs/.taco_home/remote-builds/taco-remote/builds/600
Saving build request payload to : /Users/ccs/.taco_home/remote-builds/taco-remote/builds/600
Saved uploaded build to /Users/ccs/.taco_home/remote-builds/taco-remote/builds/600/upload_600.tgz
POST /cordova/build/tasks?command=build&vcordova=6.3.1&cfg=release&options=--device 202 1348.564 ms - 629
GET /cordova/build/tasks/600 200 0.970 ms - 629
Extracted app contents from uploaded build request to /Users/ccs/.taco_home/remote-builds/taco-remote/builds/600/cordovaApp. Requesting build.
Taking 600 as current build
GET /cordova/build/tasks/600 200 1.428 ms - 687
Done with current build. Checking for next build in queue.

根据this discussion,ENOENT错误似乎不是问题的根源。

此外,从目录/ cordovaApp / platforms / ios / build直接在Mac上运行构建文件build.xcconfig会导致应用程序被成功编译和构建。

可能是什么问题?

2 个答案:

答案 0 :(得分:0)

只是想坚持这一点很重要:

在windows上安装最新版本:npm install -g cordova 配置VS使用cordova 7.0.0(在config.xml上,在平台选项卡中。如果你没有看到它,只需将taco.json更改为7.0.0) 在mac上安装最新的cordova:npm install -g cordova 在mac上安装最新版本的ios-deploy:npm install ios-deploy 删除文件夹〜/ .taco-home / node_modules / 在mac上安装最新的remotebuild:npm install remotebuild(应该是2.1.3)。

答案 1 :(得分:0)

更新我的mac上的cordova解决了我的问题。