2

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'

任何帮助将不胜感激,因为我在这里有点碰壁:(

4

1 回答 1

2

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

虽然我们正在积极修复它,尽管您无法为设备构建应用程序,但您始终可以在 taco 的模拟器上运行您的应用程序,只需运行“taco emulate ios”即可在 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 版本做准备,它应该已经修复了这个问题!

谢谢,浸泡。

于 2015-09-25T18:21:57.487 回答