菜鸟教程小白 发表于 2022-12-12 14:40:13

ios - 带有 Expo 的独立应用程序 iOS 尺寸太大(218mb)


                                            <p><p>在开始之前,对不起我的英语!我会努力的!</p>

<p>我想为 iOS 构建我的应用程序,所以我使用了“exp build:ios”,但这让我的 IPA 太大(> 200mb)
所以我尝试分离我的应用程序以使用 ExpoKit 进行编译,但这不是一个独立的应用程序......这使我成为一个连接到 expo 服务器以启动我的代码的应用程序(并在我每次启动时下载它)</p>

<p>我应该如何构建我的应用程序,并让它具有更好的大小(大约 30mb)</p>

<p>感谢您的帮助!</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><blockquote>
<p>Hi! Your IPA contains <a href="https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html" rel="noreferrer noopener nofollow">bitcode, as well as slicing for a few different
device
architectures</a>,
so it doesn&#39;t represent the final binary that will appear in the App
Store.</p>
<p>The Expo Client app, which is strictly larger than the code contained
in your CRNA app, is currently 19.8 MB (compressed) in the App Store,
and 26 MB when extracted onto a device. This varies slightly between
versions as we update our SDK, but that&#39;s the ballpark figure.</p>
</blockquote>
<p> <a href="https://forums.expo.io/t/ios-standalone-app-size-is-too-big" rel="noreferrer noopener nofollow">https://forums.expo.io/t/ios-standalone-app-size-is-too-big</a> </p>
<p>除此之外,您可能还需要考虑要捆绑哪些 Assets 。默认情况下,您使用的每个 Assets 都捆绑在二进制文件中,但其中任何一个都可以按需下载。您可以进入 <code>app.json</code> 并删除 <code>assetBundlePatterns</code> 键,然后重新构建。</p>
<p>更多信息请访问 <a href="https://expo.fyi/managed-app-size" rel="noreferrer noopener nofollow">https://expo.fyi/managed-app-size</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 带有 Expo 的独立应用程序 iOS 尺寸太大(218mb),我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/50990354/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/50990354/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 带有 Expo 的独立应用程序 iOS 尺寸太大(218mb)