创建存档以在 AppStore 中发布

Create archive to publish in AppStore

我有一个 detach 应用程序,因为我需要安装 firebase。 在

之前,我从未为 Iphone 创建过应用程序

我阅读了:
https://docs.expo.io/versions/v28.0.0/guides/offline-support.html
https://docs.expo.io/versions/v28.0.0/distribution/building-standalone-apps
https://docs.expo.io/versions/v19.0.0/workflow/advanced-expokit-topics#configuring-the-js-url

不幸的是,在构建应用程序时,它仍然以开发模式创建它。 (我还需要一个本地服务器)
1.如何在生产模式下做standalone?
2.如何绑定bundle让应用离线运行?

  1. How to do standalone in production mode?

Expo 分离您的项目构建配置以决定本地或生产模式。所以在你的情况下:

转到您的 Target -> Edit Scheme -> Run-> Select Release 模式

对于Archive,它是预先选择的Release,所以当您存档项目并提交给 Apple 时它是生产模式。

  1. How to attach a bundle so that the application works offline?

您必须为 app.json 控制 updates 的值。 https://docs.expo.io/versions/latest/guides/configuration.html#updates