菜鸟教程小白 发表于 2022-12-11 18:14:28

ios - 找不到 CFBundleSupportedPlatforms。应用商店上传失败


                                            <p><blockquote>
<p>Dear developer,</p>
<p>We have discovered one or more issues with your recent delivery for &#34;*****&#34;. To process your delivery, the following issues must be corrected:</p>
<p>Invalid Bundle - A nested bundle contains simulator platform listed in CFBundleSupportedPlatforms Info.plist key.</p>
<p>Once these issues have been corrected, you can then redeliver the corrected binary.</p>
<p>Regards,</p>
<p>The App Store team</p>
</blockquote>
<p>我在将应用上传到商店后收到了这封电子邮件。我知道网上有关于这个问题的类似问题,他们说用 iPhoneOS 替换 iPhoneSimulator。</p>
<pre><code>&lt;key&gt;CFBundleSupportedPlatforms&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;iPhoneSimulator&lt;/string&gt;
&lt;/array&gt;
</code></pre>
<p>但是我在我的项目中找不到 CFBundleSupportedPlatforms,所以我无法解决问题。</p>
<p>有什么想法吗?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>有时此问题是由于为 iphonesimulator/macos 构建的某些框架或库造成的。最好的检查方法是检查所有库或最近添加的库,以确认它们是为使用“lipo”工具而构建的架构。</p>

<pre><code>lipo -info frameworkexecutableorlib

Architectures in the fat file: frameworkexecutableorlib are: armv7 armv7s i386 x86_64 arm64
</code></pre>

<p>通常,构建过程可以在归档/导出应用程序时去除不受支持的架构。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 找不到 CFBundleSupportedPlatforms。应用商店上传失败,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/45028879/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/45028879/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 找不到 CFBundleSupportedPlatforms。应用商店上传失败