skip to Main Content

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.

enter image description here

enter image description here

I don’t understand where the problem comes from.

2

Answers


  1. Chosen as BEST ANSWER

    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"!


  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search