菜鸟教程小白 发表于 2022-12-13 02:26:21

ios - FaSTLane Gym - 多种导出选项


                                            <p><p>我们有几个使用不同的应用 ID、配置文件和团队的构建(一个团队 ID 是官方的,另一个是企业 ID)。我正试图把它放在 Gymfile 中,因为 faSTLane 无法找出配置文件。 Gymfile 格式必须如何支持多种构建方法和配置文件?</p>

<p>这失败了,总是取最后一个条目(应用商店)......</p>

<pre><code>output_directory &#34;./fastlane/builds&#34;

export_options(
method: &#34;enterprise&#34;,
provisioningProfiles: {
    &#34;com.company.app.enterprise.production&#34;: &#34;Our_App_Enterprise_PRD&#34;,
    &#34;com.company.app..enterprise.staging&#34;: &#34;Our_App_Enterprise_STG&#34;
},
method: &#34;development&#34;,
provisioningProfiles: {
    &#34;com.company.app..production&#34;: &#34;Our_App_Official_PRD&#34;,
    &#34;com.company.app..staging&#34;: &#34;Our_App_Official_STG&#34;
},
method: &#34;app-store&#34;,
provisioningProfiles: {
    &#34;com.company.app&#34;: &#34;Our_App_Official_AppStore&#34;
}
)
</code></pre>

<p>这也失败了。总是拿第一个条目...</p>

<pre><code>output_directory &#34;./fastlane/builds&#34;

export_options(
method: &#34;enterprise&#34;,
provisioningProfiles: {
    &#34;com.company.app.enterprise.production&#34;: &#34;Our_App_Enterprise_PRD&#34;,
    &#34;com.company.app..enterprise.staging&#34;: &#34;Our_App_Enterprise_STG&#34;
}
)

export_options(
method: &#34;development&#34;,
provisioningProfiles: {
    &#34;com.company.app..production&#34;: &#34;Our_App_Official_PRD&#34;,
    &#34;com.company.app..staging&#34;: &#34;Our_App_Official_STG&#34;
}
)

export_options(
method: &#34;app-store&#34;,
provisioningProfiles: {
    &#34;com.company.app&#34;: &#34;Our_App_Official_AppStore&#34;
}
)
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>您不能在一个 <code>Gymfile</code> 中拥有多个 <code>export_options</code>,而是必须在 <code> 中多次调用 <em>match</em>>Fastfile</code>,每次都有不同的<code>export_options</code>。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - FaSTLane Gym - 多种导出选项,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/45539868/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/45539868/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - FaSTLane Gym - 多种导出选项