ios - TACO 不会使用指定的 --device 参数远程构建 ios
<p><p>Remotebuild 在我的 osx 服务器上启动并运行,我可以使用:</p>
<pre><code>taco build ios
</code></pre>
<p>但是当我尝试以下操作时</p>
<pre><code>taco build ios --device
</code></pre>
<p>我遇到了一个老大错误</p>
<pre><code>------ 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
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
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'
</code></pre>
<p>任何帮助将不胜感激,因为我在这里有点碰壁了:(</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>感谢您使用 TACO 并报告此问题。这是一个合法的错误,我们错误地解析了“--device”选项,导致远程构建不遵守此参数并如您所描述的那样失败。</p>
<p>虽然我们正在积极修复它,尽管您无法为设备构建应用程序,但您始终可以在 taco 的模拟器上运行您的应用程序,只需运行“taco emulate ios”即可在 ios 模拟器上运行您的应用程序。</p>
<p>如果您需要 IPA,这里有一个解决方法,但需要您修改我们包中的 JS 文件。这将构建 IPA 并将其带回您的 Windows 机器上的\remote\ios\debug。</p>
<p>解决方法正在更改 %appdata%\npm\node_modules\taco-cli\cli\remoteBuild\remoteBuildClientHelper.js 的 <strong><em>第 370 行</em></strong><em></em>来自:</p>
<pre><code>params["options"] = "--device " + params["options"];
</code></pre>
<p>到:</p>
<pre><code>params["options"] = "--device";
</code></pre>
<p><strong>注意</strong>:在 <strong>--device</strong> 之后删除空格很重要。 </p>
<p>如果您有任何问题或疑虑,请告诉我,再次感谢您使用 TACO。我们正在为即将发布的 TACO 1.0.0 版本做准备,它应该已经修复了这个问题!</p>
<p>谢谢,
浸泡。</p></p>
<p style="font-size: 20px;">关于ios - TACO 不会使用指定的 --device 参数远程构建 ios,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/32762292/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/32762292/
</a>
</p>
页:
[1]