菜鸟教程小白 发表于 2022-12-12 16:19:52

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&amp;vcordova=5.1.1&amp;vcli=0.8.0&amp;cfg=debug&amp;platform=ios&amp;options=--device%20undefined&amp;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 = &#39;/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&#39;
xcrun: note: SDKROOT = &#39;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk&#39;
xcrun: note: TOOLCHAINS = &#39;&#39;
xcrun: note: DEVELOPER_DIR = &#39;/Applications/Xcode.app/Contents/Developer&#39;
xcrun: note: XCODE_DEVELOPER_USR_PATH = &#39;&#39;
xcrun: note: xcrun_db = &#39;/var/folders/s8/9typ1pdj1lg88n7r9wg5f9rc0000gn/T/xcrun_db&#39;
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 &#39;/var/folders/s8/9typ1pdj1lg88n7r9wg5f9rc0000gn/T/xcrun_db&#39; : &#39;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication&#39;
error: Specified application doesn&#39;t exist or isn&#39;t a bundle directory : &#39;platforms/ios/build/device/io.taco.hellotaco.app&#39;

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 = &#39;/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&#39;
xcrun: note: SDKROOT = &#39;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk&#39;
xcrun: note: TOOLCHAINS = &#39;&#39;
xcrun: note: DEVELOPER_DIR = &#39;/Applications/Xcode.app/Contents/Developer&#39;
xcrun: note: XCODE_DEVELOPER_USR_PATH = &#39;&#39;
xcrun: note: xcrun_db = &#39;/var/folders/s8/9typ1pdj1lg88n7r9wg5f9rc0000gn/T/xcrun_db&#39;
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 &#39;/var/folders/s8/9typ1pdj1lg88n7r9wg5f9rc0000gn/T/xcrun_db&#39; : &#39;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication&#39;
error: Specified application doesn&#39;t exist or isn&#39;t a bundle directory : &#39;platforms/ios/build/device/io.taco.hellotaco.app&#39;
</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[&#34;options&#34;] = &#34;--device &#34; + params[&#34;options&#34;];
</code></pre>

<p>到:</p>

<pre><code>params[&#34;options&#34;] = &#34;--device&#34;;
</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]
查看完整版本: ios - TACO 不会使用指定的 --device 参数远程构建 ios