菜鸟教程小白 发表于 2022-12-12 11:34:58

android - 使用 RoboVM 将 App 上传到 Apple 的 App Store 时出现问题


                                            <p><p>我正在使用 Eclipse、libGDX 1.2.0 和 RoboVM 0.0.14。</p>

<p>在过去的几天里,我试图将我的应用上传到应用商店,但没有成功。</p>

<p>说实话,我真的不知道我做错了什么,所以我决定附上以下资源,希望这里的人能够帮助我解决这个问题。</p>

<p>谢谢。</p>

<p><strong>您会在下面找到:</strong> </p>

<ol>
<li>应用程序加载器错误消息。</li>
<li>build.gradle 文件。</li>
<li>应用 ID 详细信息(来自 developer.apple.com)。</li>
<li>iOS 证书(来自 developer.apple.com)。</li>
<li>iOS 配置文件(来自 developer.apple.com)。</li>
<li>应用信息(来自 iTunes 连接)。</li>
<li>钥匙串(keychain)访问文件(在我的 Mac 上)。</li>
</ol>

<p><strong>应用程序加载器错误消息:</strong></p>

<blockquote>
<p><strong>Error 1:</strong> &#34;The bundle identifier cannot be changed from the current
value, &#39;com.tzamots.nGame&#39;. If you want to change your bundle identifier, you will need to create a new application in iTunses Connect.&#34;</p>

<p><strong>Error 2:</strong> &#34; invalid Code Signing Entitlements. The entitlements in your
app bundle signature do not match the ones that are contained in the
provisioning profile. According to the provisioning profile, the
bundle contains a key value that is not allowed:
&#39;J3P5A3B6AS.com.tzamots.noniGame.iOSLauncher&#39; for key
&#39;application-identifier&#39; in &#39;Payload/iOSLaouncher.app/IOSLaouncher&#34;</p>
</blockquote>

<p><strong>iOS 目录下的build.gradle 文件:</strong></p>

<pre><code> robovm {
iosSignIdentity = &#34;iPhone Distribution: Tzamots (J3P5A3B6AS)&#34;
iosProvisioningProfile = &#34;nGame_Dis (J3P5A3B6AS.com.tzamots.nGame)&#34;
iosSkipSigning = false
stdoutFifo = &#34;&#34;
stderrFifo = &#34;&#34;
}
</code></pre>

<p><strong>应用 ID 详细信息(来自 developer.apple.com)</strong></p>

<blockquote>
<p><strong>Name:</strong> noniGame</p>

<p><strong>Prefix:</strong> J3P5A3B6AS</p>

<p><strong>ID:</strong> com.tzamots.nGame</p>
</blockquote>

<p><strong>iOS 证书(来自 developer.apple.com)</strong></p>

<p><strong>1.</strong></p>

<blockquote>
<p><strong>Name:</strong> Tzamots</p>

<p><strong>Type:</strong> iOS Development</p>
</blockquote>

<p><strong>2.</strong></p>

<blockquote>
<p><strong>Name:</strong> Tzamots</p>

<p><strong>Type:</strong> iOS Distribution</p>
</blockquote>

<p><strong>iOS 配置文件(来自 developer.apple.com)</strong></p>

<p><strong>1.</strong></p>

<blockquote>
<p><strong>Name:</strong> iOS Team Provisioning Profile: com.tzamots.nGame </p>

<p><strong>Type:</strong> Development</p>

<p><strong>App ID</strong> noniGame (com.tzamots.nGame)</p>

<p><strong>Status:</strong> Active (Managed by Xcode)</p>
</blockquote>

<p><strong>2.</strong></p>

<blockquote>
<p><strong>Name:</strong> nGame_Dev</p>

<p><strong>Type:</strong> Development</p>

<p><strong>App ID</strong> noniGame (com.tzamots.nGame)</p>

<p><strong>Status:</strong> Active</p>
</blockquote>

<p><strong>3.</strong></p>

<blockquote>
<p><strong>Name:</strong> nGame_Dis</p>

<p><strong>Type:</strong> Distribution</p>

<p><strong>App ID</strong> noniGame (com.tzamots.nGame)</p>

<p><strong>Status:</strong> Active</p>
</blockquote>

<p><strong>应用信息(来自 iTunes 连接)</strong></p>

<blockquote>
<p><strong>SKU:</strong> 123456</p>

<p><strong>Bundle ID:</strong> com.tzamots.nGame</p>
</blockquote>

<p><strong>钥匙串(keychain)访问文件(在我的 Mac 上)</strong></p>

<p><em>1.</em></p>

<blockquote>
<p><strong>Name:</strong> iPhone Developer: Tzamots (W72YA5HF6K)</p>
</blockquote>

<p><em>2.</em></p>

<blockquote>
<p><strong>Name:</strong> iPhone Distribution: Tzamots (J3P5A3B6AS)</p>
</blockquote></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>所以..我终于解决了:)</p>

<p>我不得不从我的 iOS 目录中的 build.gradle 中删除代码并将其替换到我的根目录下的 <code>project(":ios")</code> 然后我更改了 <code>iosSignIdentity</code> 等于我的钥匙串(keychain)访问中显示的分发证书的名称,<code>iosProvisioningProfile</code> 等于 developer.apple.com 上 iOS 配置文件中显示的名称。</p>

<p>对于解决方案的第二部分(错误 1),我必须打开 iOS 根目录下的 robovm.properties 文件并更改 <code>app.id</code> 使其与我使用的一样在我的配置文件中</p></p>
                                   
                                                <p style="font-size: 20px;">关于android - 使用 RoboVM 将 App 上传到 Apple 的 App Store 时出现问题,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/25460154/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/25460154/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: android - 使用 RoboVM 将 App 上传到 Apple 的 App Store 时出现问题