我在Windows7中用Visual Studio2015开发了cordova应用程序。
Mac上的节点版本为v5.1.0。
在Mac上运行remotebuild时,从Visual Studio开始构建。
在模拟器模式下,它似乎可以正确构建(msk.test.build.app是在‘platforms/ios/ build / emulator’中创建的。)
在设备模式下,构建失败,错误如下。
我发现‘platform/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,效果更好,谢谢!
but运行良好,在Windows/Mac上都创建了.ipa,但停止在通过USB连接到Windows的iphone上安装应用程序。
Visual Studio输出控制台显示如下(单词可能不同,因为我的是日语)。
:
:
1> ------ copying to project: iOS
2>------ start configuration: project: MSK App, composition:Debug iOS ------发布于 2015-11-20 02:46:12
您的Node版本与Cordova 5.4之间存在兼容性问题。我们正在对远程构建和Visual Studio进行修复,以解决其中的一些问题,但同时我建议您降级到Cordova 5.3,并使用Node的早期版本(4.2.2应该可以)。这应该可以解决这个问题。
(披露:我在Microsoft的Visual Studio中为Apache Cordova开发工具)
发布于 2015-11-20 09:52:42
here中记录了节点版本4以上和Cordova <= 5.3.3的已知问题。此外,我们也看到了Cordova 5.4的问题,并建议按照Michael的建议降级。
具体看一下-
将Cordova与Node.js 5.0.0+和Cordova 5.3.3及更低版本配合使用时,
为iOS生成时,Cordova Build挂起或不执行
Subhag Oak (Microsoft)
https://stackoverflow.com/questions/33791687
复制相似问题