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
- run
npm run iosto make sure the project compilied and installed successfully on the simulator,then teminate - run
pnpm prebuildto generate ios directory - open
projectRoot/ios/youproject.xcodeworkspacedirectory with XCode - make sure that you have connenct your iPhone/iPad with usb and trust your computer on your iPhone/iPad
- select your iPhone and then click
runbutton, debug version will be installed to your iPhone - after installation, don't forget to run
npm start, there will be a QRcode in the terminal - scan the QR code with your iPhone camera.

Top comments (0)