Expo/React-Native,是否可以在设备/模拟器上测试运行独立的iOS应用程序?
我正在使用Expo使用React-Native编写我的应用程序代码.我可以在通过Expo客户端应用程序运行它们或构建APK并独立运行的Android设备上测试我的应用程序.
I'm using Expo to code my apps with React-Native. I can test my apps on Android devices running them from the Expo client app or building an APK and running it as standalone.
在iOS上,我可以从Expo客户端运行我的应用程序,但是找不到独立运行该应用程序的方法.在这种情况下,我想测试本地" facebook登录功能.
On iOS I can run my app from the Expo client but I couldn't find a way to run the app as standalone. In this case, I would like to test the "native" facebook login functionality.
是否可以在iOS上独立运行应用程序(无需使用Expo客户端)?
注意:为此,我试图避免通过TestFlight,这将使我的工作流程非常缓慢.我正在使用Mac OS.
Note: I'm trying to avoid going through TestFlight for this, that will make my workflow painfully slow. I am using Mac OS.
- 运行
expo build:ios -t simulator
创建一个iOS独立模拟器版本. - 等待构建完成,然后下载并解压缩YourAppName.tar.gz
- 启动iOS模拟器并运行
xcrun simctl install booted YourAppName.app
- Run
expo build:ios -t simulator
to create an iOS standalone simulator build. - Wait for build to finish, then download and unpack YourAppName.tar.gz
- Start an iOS simulator and run
xcrun simctl install booted YourAppName.app