在 react-native 0.45 之前,当你创建一个项目时,它会在 ios 文件夹中生成一个 XCode 项目文件,这样你就可以用 XCode 打开它并用它来提交你的应用到应用商店。
自 react-native 0.45 以来,react native 项目是使用 create-react-native-app
命令创建的,并且不再有 xcode 项目。
我读到您可以“弹出”以返回到旧样式并获得 XCode 项目。 create-react-native-app
应该让一切变得更简单,所以我想有一种方法可以在不弹出的情况下提交到应用程序商店,这不会使整个过程比使用更痛苦XCode.
要清楚:我知道可能有一些方法可以在没有 XCode 的情况下提交到应用程序商店,但它们不是更痛苦吗?我无法相信 react-native 会认为不再生成 XCode 项目是一种改进。
有人能给我指出正确的方向吗?
最佳答案
Since react-native 0.45, react native project are created with the create-react-native-app command and there is no xcode project anymore.
这是不正确的。 create-react-native-app
只是启动 React Native 项目的两种方式之一。启动项目的react-native init
方法是still there in the docs .
To be clear: I understand that there are probably ways to submit to the app store without XCode, but aren't them much more painful? I can't believe that react-native would then consider it an improvement to not generate a XCode project anymore.
你不会得到一个很好的答案,因为它很大程度上取决于意见。 StackOverflow 不是 ask such a question 的正确位置.
Could someone point me in the right direction?
同问。请阅读How to Ask正确地展示您尝试过的内容以及您遇到的确切问题。
作为学习如何发布的起点,我建议查看 create-react-native-app documentation因为它为您提供了两个选项:
他们的 documentation更深入地了解选项。这是我在不发表任何意见的情况下可以给出的最好的总结。
关于ios - 将使用 create-react-native-app 创建的应用程序提交到 App Store(没有 XCode?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44682951/