TACO不会使用指定的--device参数远程生成ios

TACO不会使用指定的--device参数远程生成ios,ios,cordova,command-line,cordova-cli,taco,Ios,Cordova,Command Line,Cordova Cli,Taco,Remotebuild已在我的osx服务器上启动并运行,我可以使用以下工具进行构建: taco build ios 但是当我尝试以下方法时 taco build ios --device 我犯了个大错误 ------ Incremental Build: true ------ Submitting new build request to: http://xxx.xxx.net:3000/cordova/build/tasks?command=build&vcordova=5.1.

Remotebuild已在我的osx服务器上启动并运行,我可以使用以下工具进行构建:

taco build ios
但是当我尝试以下方法时

taco build ios --device
我犯了个大错误

------ Incremental Build: true
------ Submitting new build request to: http://xxx.xxx.net:3000/cordova/build/tasks?command=build&vcordova=5.1.1&vcli=0.8.0&cfg=debug&platform=ios&options=--device%20undefined&buildNumber=20057
------ 1:55:14 PM Checking on build status from http://xxx.xxx.net:3000/cordova/build/tasks/20057 [Attempt 1]
Uploaded - Uploaded build request payload.
Remote build log written to C:\work\helltaco\remote\ios\debug\build.log
------ 1:55:19 PM Checking on build status from http://xxx.xxx.net:3000/cordova/build/tasks/20057 [Attempt 2]
Error - Build failed with error Command failed: /bin/sh -c xcrun -v -sdk iphoneos PackageApplication platforms/ios/build/device/io.taco.hellotaco.app -o /Users/xxx/.taco_home/remote-builds/taco-remote/builds/20057/cordovaApp/platforms/ios/build/device/HelloTaco.ipa
xcrun: note: PATH = '/Users/xxx/.taco_home/node_modules/taco-remote-lib/1.0.1/node_modules/taco-remote-lib/node_modules/ios-sim/build/release:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin'
xcrun: note: SDKROOT = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.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/s8/9typ1pdj1lg88n7r9wg5f9rc0000gn/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.0.sdk||/Applications/Xcode.app/Contents/Developer|
xcrun: note: lookup resolved in '/var/folders/s8/9typ1pdj1lg88n7r9wg5f9rc0000gn/T/xcrun_db' : '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication'
error: Specified application doesn't exist or isn't a bundle directory : 'platforms/ios/build/device/io.taco.hellotaco.app'

TACO5629: Remote build failed
Inner Error:
Remote build error from the build server Build failed with error Command failed: /bin/sh -c xcrun -v -sdk iphoneos PackageApplication platforms/ios/build/device/io.taco.hellotaco.app -o /Users/xxx/.taco_home/remote-builds/taco-remote/builds/20057/cordovaApp/platforms/ios/build/device/HelloTaco.ipa
xcrun: note: PATH = '/Users/xxx/.taco_home/node_modules/taco-remote-lib/1.0.1/node_modules/taco-remote-lib/node_modules/ios-sim/build/release:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin'
xcrun: note: SDKROOT = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.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/s8/9typ1pdj1lg88n7r9wg5f9rc0000gn/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.0.sdk||/Applications/Xcode.app/Contents/Developer|
xcrun: note: lookup resolved in '/var/folders/s8/9typ1pdj1lg88n7r9wg5f9rc0000gn/T/xcrun_db' : '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication'
error: Specified application doesn't exist or isn't a bundle directory : 'platforms/ios/build/device/io.taco.hellotaco.app'

任何帮助都将不胜感激,因为我在这里遇到了一个难题:(

感谢您使用TACO并报告此问题。这是一个合法的错误,我们错误地解析“-device”选项,导致远程构建不遵守此参数,并如您所述失败

虽然我们正在积极修复它,尽管您无法为设备构建应用程序,但您始终可以在taco的模拟器上运行应用程序,只需运行“taco Simulate ios”即可在ios模拟器上运行应用程序

如果您需要IPA,这里有一个解决方法,但它需要您修改我们包中的JS文件。这将生成IPA并将其返回到您的windows计算机上的\remote\ios\debug

解决方法是将%appdata%\npm\node\u modules\taco cli\cli\remoteBuild\remoteBuildClientHelper.js的第370行更改为:

致:

注意:在--device之后删除空格非常重要

如果您有任何问题或顾虑,请告诉我&再次感谢您使用TACO。我们正在为即将发布的TACO 1.0.0版本做好准备,应该会解决此问题

谢谢,
浸泡。

嘿,亚当,谢谢你报告这个问题并使用TACO。我们非常棒!这就成功了。现在就把IPA拿出来。谢谢你的帮助!我可以确认它现在可以正常工作(在1.2.0上测试)。部署到我的设备上没有问题。谢谢你TACO:D。
params["options"] = "--device " + params["options"];
params["options"] = "--device";