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 emulate ios”在tacos的模拟器上运行应用程序,以在ios模拟器上运行应用程序。

如果您需要IPA,这是一种解决方法,但是您需要修改我们程序包中的JS文件。这将构建IPA,并将其重新带回到Windows计算机上的\ remote \ ios \ debug。

解决方法是将%appdata%\ npm \ node_modules \ taco-cli \ cli \ remoteBuild \ remoteBuildClientHelper.js的行370 更改为:

params["options"] = "--device " + params["options"];

至:
params["options"] = "--device";

注意:删除 --device 之后的空白很重要。

让我知道您是否有任何疑问或疑虑,再次感谢您使用TACO。我们已经为即将开始的TACO 1.0.0发行做好准备,并且应该已解决此问题!

谢谢,
浸泡。

关于ios - TACO将不会使用指定的--device参数远程构建ios,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32762292/

10-09 01:30