ios - 如何在没有 expo 的情况下将 react-native 应用程序上传到 ios 应用程序市场?

标签 ios swift react-native

<分区>

我在 https://facebook.github.io/react-native/docs/running-on-device 上看到了文档但是没有上传市场的解释。 我看到一些博客文章,他们告诉我们要为 ios 手动捆绑 js

请给我正确的信息。

最佳答案

如果您以前没有做过或不熟悉该过程,则 FaSTLane 是最简单的方法。

遵循简单的installation steps .

之后,您需要在 Fastfile 中创建两个类似于这些的 channel (您可能需要进行一些修改):

platform :ios do

lane :release do
        cert // handle the ios certificates
        sigh // sign the code
        sigh(app_identifier: "your.app.identifier") // get it from XCode > General tab > Bundle identifier
        gym(export_method: 'app-store') // build the app
end

lane :upload_to_appstore do
        appstore(
            username: 'your email',
            ipa: 'your app.ipa',
            automatic_release: false,
            skip_metadata: true,
            skip_screenshots: true,
            submit_for_review: false
        )
end

end

注意:您需要有证书。如果您不这样做,您可以使用 FaSTLane 轻松创建它们。当然,你需要有一个苹果开发者账号。

然后只需执行 faSTLane ios releasefaSTLane ios upload_to_appstore

关于ios - 如何在没有 expo 的情况下将 react-native 应用程序上传到 ios 应用程序市场?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55725326/

相关文章:

swift - numberOfRowsInSection 函数的参数

ios - 为什么更新到 Xcode 12 后会出现链接错误?

javascript - react native : _this2. setState不是一个函数

ios - 是否可以在不拥有 iPhone 的情况下发布 iOS 应用程序?在 Xcode 上找不到配置文件

ios - 用户可以直接从 iOS 访问文件吗?

ios - 在 iOS 上复制本地文件时遇到一些麻烦

arrays - 如何快速计算数组中的特定项目

c# - TouchLocation 对象无法正常工作

react-native - appcenter codepush 更新 Android 但不更新 iOS : not released because it is identical to the contents of the specified deployment's current release