I have a problem with xcode. When I start the application on an iPhone emulator the code works correctly.
However, when I want to start the application with "Any IOS device" or "Any Simulator IOS device" I have a problem:
A build only device cannot be used to run this target.
I don’t understand where the problem comes from.
2
Answers
Solution : YOU DO NOT NEED TO RUN THE APPLICATION DIRECTLY TO ARCHIVE IT!!
My problem is that I used "Start the active scheme" when I had to click on "Product > Archive", then the code executes and builds the project to put it directly in "App Store Connect"!
Select either a simluator or physical device to run your project. You must have selected Any IOS device,which is used usually to build or archive.