how to simulate xcode with camera function?

I download GLCameraRipple. but when I run xcode to simulator, the message code is " A build only device cannot be used to run this target. No supported iOS devices are available. connect a device to run your application or choose a simulated device as the destination. However, my mac is already connected to my iphone.

Replies

>when I run xcode to simulator, the message code is


This is confusing. I don't understand how you get the quoted message "no supported iOS devices are available"(2) by attempting "xcode to simulator."(1)


(1) The camera is unsupported in the simulator. Don't do that.


See https://developer.apple.com/library/content/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html


Build to your connected phone - select it, not a simulator.


(2) But if that's what you're doing (and the xcode/simulator claim is a mistype), it's not (1) related and your device is: not registered in the member center and/or it isn't running a compatible iOS and/or it's camera doesn't support your code.