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 ios
to make sure the project compilied and installed successfully on the simulator,then teminate - run
pnpm prebuild
to generate ios directory - open
projectRoot/ios/youproject.xcodeworkspace
directory 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
run
button, 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)