gpt4 book ai didi

ios - TACO 不会使用指定的 --device 参数远程构建 ios

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:57:38 25 4
gpt4 key购买 nike

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 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 版本做准备,它应该会解决这个问题!

谢谢,浸泡。

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com