简体   繁体   English

如何在 Xcode 中打开 Expo React Native 项目以创建构建

[英]How to open an Expo React Native project in Xcode in order to create a build

I have an expo react native app's project and xcode simply denies to open it.我有一个 expo react native 应用程序的项目,xcode 只是拒绝打开它。 I looked up for the solutions on internet but it says it can be done through podfile but there is no such file or ios folder in an expo react native project.我在互联网上查找了解决方案,但它说可以通过 podfile 完成,但是 expo react 本机项目中没有这样的文件或 ios 文件夹。 How can I open it in xcode如何在 xcode 中打开它

If you dont have the ios and android folders then it sounds you have a managed work flow expo project.如果您没有 ios 和 android 文件夹,那么听起来您有一个托管的工作流程博览会项目。 This is a react native project where all the code you write is pure javascript and all of the native side code is managed by expo.这是一个 React Native 项目,您编写的所有代码都是纯 javascript,所有本机端代码都由 expo 管理。 If this is what you want then you just need to use expo build tools .如果这是您想要的,那么您只需要使用expo 构建工具 If you must build with xcode then eject your project and open the ios folder in xcode and build from there如果您必须使用 xcode 构建,则弹出您的项目并在 xcode 中打开 ios 文件夹并从那里构建

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM