DEV Community

bruce D
bruce D

Posted on

Debug Expo app with real device(iOS)

Today. I am developing an apple that capture and and recognize the content using Expo-camera, but found that we can't debug the camere function in iOS simulator. we can only debug it with real iOS device.

Here is the way

  1. run npm run ios to make sure the project compilied and installed successfully on the simulator,then teminate
  2. run pnpm prebuild to generate ios directory
  3. open projectRoot/ios/youproject.xcodeworkspace directory with XCode
  4. make sure that you have connenct your iPhone/iPad with usb and trust your computer on your iPhone/iPad
  5. select your iPhone and then click run button, debug version will be installed to your iPhone
  6. after installation, don't forget to run npm start, there will be a QRcode in the terminal
  7. scan the QR code with your iPhone camera.

Top comments (0)