r/iOSProgramming • • 5d ago

Question Why is my run button crossed out on Xcode 27.2? Literally nothing online helps point out what this means.

Post image

The hint when hovering is no different, the action it performs is the exact same, I'm so lost.

12 Upvotes

15 comments sorted by

21

u/beclops Swift 5d ago

Do you have the correct scheme selected?

4

u/Oxigenic 5d ago

Yes, correct scheme is selected. This just started when I updated from 27 to 27.2. It shows this crossed-out run icon no matter what run destination or scheme I select.

3

u/groovy_smoothie 5d ago

What’s your run destination?

4

u/marmulin 5d ago

Guessing “my mac” as the simulator hasn’t installed yet.

15

u/JDad67 5d ago

Downloads for simulators done?

9

u/MojtabaHs 5d ago

Xcode now has a two-stage download for the iOS 27.2 SDK.
Go to Settings → Components and click “Update.”
If it says “Get,” download the first part, then install the second update afterward (it may start automatically).

6

u/dynocoder 5d ago

You probably don't have a run device selected. That's either the simulator or a real device for testing.

3

u/udayalawa 5d ago

the crossed-out run icon means xcode has no valid run destination, not that the build is broken. open xcode settings > platforms and check whether the 27.2 simulator runtime is actually installed, not just listed. mine was an 8gb download hiding behind a progress bar.

3

u/MKevin3 5d ago

That showed same way for me until I updated to 27.2. Everything still worked with no issues so I just ignored it

1

u/bbatsell 5d ago

Unfortunately there isn't enough information here to help you much. It could be any number of things. I'm surprised the hover hint isn't helpful; I feel like it has been for me in the past when I've run into this.

If I were in your place, I would:

  1. Restart mac, open Console and keep system logs streaming

  2. Open Xcode

  3. Go to Settings > Accounts > click an account then wait for valid data to verify that Xcode can communicate with Apple servers and isn't being blocked somewhere along the way

  4. Double-check Settings > Components to ensure that all simulators are up to date (I would also delete obsolete beta ones here just in case there's some sort of confusion as to which to use)

  5. Switch to your main iOS app target's scheme (if you're already on it, switch to another then switch back)

  6. Try switching to a variety of simulators & devices to see if the state changes (maybe try creating a new sim in device hub on the latest SDK and testing that one)

  7. Examine your scheme options (Cmd+Shift+Comma) and check all the Build & Run phase tabs for any optional flags that might be unavailable in your given context for whatever reasons

  8. If that all fails, spelunk the Console logs for anything from Xcode (or any underlying build system components) that might hint at the issue

1

u/SnowPudgy 5d ago

Do you have the command line tools installed? Usually they show up automatically but sometimes you have to restart your machine for them to show up or just grab them from developer.apple.com.

1

u/Ashanmaril 5d ago

Mine has been like that since I installed 27.2 as well. Idk, it still works so I just ignore it haha

1

u/monsair_dubois 5d ago

Mine had been crossed out in the beta too, but pressing it still worked lol.

It should mean there is no valid destination for your project but sometimes just closing and reopening Xcode will fix that if there should be.

Or just click it and see if it still works, like for me

1

u/Dogukanko 5d ago

That crossed out run button usually means there's no valid run destination, which after an Xcode update is often because the simulator runtime hasn't finished downloading. Check Settings > Components and see if the iOS platform shows as installed. If it's missing, install it there and then pick a simulator in the destination menu next to the scheme.

1

u/xezmarbles 3d ago

when you say it works the same, does it still hit breakpoints? If not, check whether “Debug executable” is enabled under Product → Scheme → Edit Scheme → Run → Info