在Visual Studio TACO中,iOS远程构建失败

时间:2015-11-18 22:29:01

标签: ios cordova visual-studio-2015 visual-studio-cordova taco

我在Windows7中使用Visual Studio 2015开发cordova应用程序。

Mac上的节点版本是v5.1.0。

在Mac上运行remotebuild时,从Visual Studio开始构建。

在模拟器模式下,它似乎构建正确(msk.test.build.app是在' platforms / ios / build / emulator'中创建的。)

在设备模式下,构建失败,错误如下。

我找到了平台/ ios / build / device'没有创建,但不知道如何修复。

Submitting new build request to: https://Macintosh.local:3000/cordova/build/tasks?command=build&vcordova=5.4.0&cfg=debug&options=--device&buildNumber=1403&loglevel=warn
------ new build: {"command":"build","vcordova":"5.4.0","cfg":"debug","options":"--device","buildNumber":"1403","loglevel":"warn","status":"Uploaded","buildCommand":"build","buildPlatform":"ios","configuration":"debug","buildLang":"ja-JP","buildDir":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403","logLevel":0,"submissionTime":"2015-11-18T21:38:43.650Z","changeList":null,"buildSuccessful":false,"messageArgs":null,"message":"Uploaded build request payload.","tgzFilePath":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403/upload_1403.tgz","appDir":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403/cordovaApp","statusTime":"2015-11-18T21:38:43.652Z"}

  error - Build failed with error Command failed: /bin/sh -c xcrun -v -sdk iphoneos PackageApplication platforms/ios/build/device/msk.test.build.app -o /Users/User/.taco_home/remote-builds/taco-remote/builds/1403/cordovaApp/platforms/ios/build/device/BuildTest2.ipa
  xcrun: note: PATH = '/Users/User/.taco_home/node_modules/taco-remote-lib/1.2.0/node_modules/taco-remote-lib/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:”/Applications/Adobe'
  xcrun: note: SDKROOT = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk'
  xcrun: note: TOOLCHAINS = ''
  xcrun: note: DEVELOPER_DIR = '/Applications/Xcode.app/Contents/Developer'
  xcrun: note: XCODE_DEVELOPER_USR_PATH = ''
  xcrun: note: xcrun_db = '/var/folders/_4/x16l03kx0mxbgd6w_5zp0y5w0000gn/T/xcrun_db'
  xcrun: note: xcrun via PackageApplication (xcrun)
  xcrun: note: database key is: PackageApplication|/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk||/Applications/Xcode.app/Contents/Developer|
  xcrun: note: lookup resolved in '/var/folders/_4/x16l03kx0mxbgd6w_5zp0y5w0000gn/T/xcrun_db' : '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication'
MDAVSCLI : error : Specified application doesn't exist or isn't a bundle directory : 'platforms/ios/build/device/msk.test.build.app'

-------------------------------

我在Mac上尝试了node@0.12.7,它的效果更好,谢谢!

构建工作正常,.ipa在Windows / Mac上创建,但停止将应用程序安装到通过USB连接到Windows的iphone上。

Visual Studio输出控制台显示如下(单词可能不同,因为我的是日语)。

 :
 :
1>  ------ copying to project: iOS
2>------ start configuration: project: MSK App, composition:Debug iOS ------

2 个答案:

答案 0 :(得分:1)

您的Node版本与Cordova 5.4之间存在兼容性问题。我们正在修复远程构建和Visual Studio以解决其中的一些问题,但与此同时我建议你降级到Cordova 5.3并采用早期版本的Node(4.2.2应该没问题)。这应该可以解决问题。

(披露:我在Microsoft的Visual Studio中使用Apache Cordova工具)

答案 1 :(得分:1)

Node版本存在已知问题> 4和Cordova< = 5.3.3已记录here。我们也看到了Cordova 5.4的问题,并建议降级,正如迈克尔建议的那样。

具体看 -

  • 使用Cordova与Node.js 5.0.0+和Cordova 5.3.3及更低版本
  • 时构建不执行 使用Cordova<构建适用于iOS的iOS时,
  • 构建挂起或不执行5.3.3和Node.js 4.0.0 +
Subhag Oak (微软)