无法在 App Store 上发布反应本机 iOS 应用
Unable to distribute a react-native iOS app on the App Store
我已经开发了一个 iOS 反应本机移动应用程序,我想在 App Store 上分发。我已经注册了开发者计划,很快就会拿到证书。我的 react-native iOS 应用程序在模拟器上 运行 没问题。
这是我的第一个 iOS 应用程序,我不知道如何在 App Store 上分发 react-native 应用程序。
目前我正在使用 React 版本:0.14.8 和 react-native 版本 0.29.0
我尝试创建一个离线包,但没有成功。
如有任何帮助,我们将不胜感激。
来自this指南:
正在禁用开发者菜单
Building an app for distribution in the App Store requires using the
Release scheme in Xcode. Apps built for Release will automatically
disable the in-app developer menu. This will prevent your users from
inadvertently accessing the menu in production.
使用离线包
Set up your app to load your JavaScript, images, and other static
assets from its resource bundle rather than the development server.
This way you can test the app independently of the development server,
and will allow you to distribute the app to beta testers and submit
the app to the App Store.
- Open ios/YourApp/AppDelegate.m
- Uncomment the line, jsCodeLocation =
[[NSBundle mainBundle] ...
通常,您将按照与在 Objective-C 或 Swift 中进行原生开发时完全相同的步骤来准备和发布 iOS 应用程序,并且有许多指南在网络上。
至于特定于 React Native 的工作流程,您需要了解以下内容。
创建离线包: 听起来您已经尝试过这样做,但没有说明为什么它不起作用。在项目文件夹中,我总是 运行 以下内容,然后应用程序包会很好地拾取这些内容:
react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios
指向包: 从 RN v0.29 开始,您不再需要执行旧指南中提到的取消注释,它应该拿起它的自动来源。
- Bump the Build #: 您不可避免地最终会向 Apple 提交多个构建以进行测试和批准。不要忘记在您的应用程序包的设置中增加内部版本号,在常规 > 身份 > 内部版本下。
除此之外,其他大部分内容都不是 React 或 React Native 特有的。
我已经开发了一个 iOS 反应本机移动应用程序,我想在 App Store 上分发。我已经注册了开发者计划,很快就会拿到证书。我的 react-native iOS 应用程序在模拟器上 运行 没问题。
这是我的第一个 iOS 应用程序,我不知道如何在 App Store 上分发 react-native 应用程序。
目前我正在使用 React 版本:0.14.8 和 react-native 版本 0.29.0 我尝试创建一个离线包,但没有成功。
如有任何帮助,我们将不胜感激。
来自this指南:
正在禁用开发者菜单
Building an app for distribution in the App Store requires using the Release scheme in Xcode. Apps built for Release will automatically disable the in-app developer menu. This will prevent your users from inadvertently accessing the menu in production.
使用离线包
Set up your app to load your JavaScript, images, and other static assets from its resource bundle rather than the development server. This way you can test the app independently of the development server, and will allow you to distribute the app to beta testers and submit the app to the App Store.
- Open ios/YourApp/AppDelegate.m
- Uncomment the line, jsCodeLocation = [[NSBundle mainBundle] ...
通常,您将按照与在 Objective-C 或 Swift 中进行原生开发时完全相同的步骤来准备和发布 iOS 应用程序,并且有许多指南在网络上。
至于特定于 React Native 的工作流程,您需要了解以下内容。
创建离线包: 听起来您已经尝试过这样做,但没有说明为什么它不起作用。在项目文件夹中,我总是 运行 以下内容,然后应用程序包会很好地拾取这些内容:
react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios
指向包: 从 RN v0.29 开始,您不再需要执行旧指南中提到的取消注释,它应该拿起它的自动来源。
- Bump the Build #: 您不可避免地最终会向 Apple 提交多个构建以进行测试和批准。不要忘记在您的应用程序包的设置中增加内部版本号,在常规 > 身份 > 内部版本下。
除此之外,其他大部分内容都不是 React 或 React Native 特有的。