Xcode and Command Lines

Hi, All,
I have been programming XOJO for OSX for years, but I am new to IOS. On my Mac Mini, Sequoia 15.5, XOJO 2024 Rel. 4.2 my IOS program runs fine in the debugger, with Xcode Simulator (IOS 18.4). However, the same program code fails on my MacBook Air, Sequoia 15.5 and XOJO 2025 Rel. 1 - the program will not run in the debugger, and the Run command is grayed out with the message “Xcode and required command line tools are not installed”.

I did not encounter this problem when I program for IOS on the Mini. Both machines have Xcode version 16.4. I suspect the MacBook is not finding the Simulator but I really don’t know what is the problem. Any help will be appreciated. Thanks!

Steve Knapp

On the macbook air:

Did you download and install XCode?
Did you open XCode at least once?
Did you download and set up at least one simulator?

You might also need to select the command line tools in Xcode’s settings.

Thanks, Jeremie.
Both the Mini and the PowerBook are running the latest versions of Xcode and Xcode Simulator, and I did invoke the Simulator on the PowerBook. I have restarted both XOJO and Xcode several times on the PowerBook, but the run command is still grayed out in the XOJO debugger with the same message. I am not a Xcode programmer. When I looked at the Xcode settings, they are identical on both machines, but I could not find the “command line tools” in the Xcode settings. I am missing something when I moved my IOS XOJO code to the PowerBook. On the Mini, the debugger opens the Xcode IOS Simulator when I run my program, and the program works on the Mini.
So I am still stuck, and any advice is appreciated.

On further investigation, the problem appears to be local to my PowerBook running XOJO 2025 rel. 1. When I create a new project for IOS, the “Run On” list is missing, and only replies “Refresh”. By comparison, when I create a new project for IOS on my Mini running XOJO 2024 rel. 4.2, the Run On list is populated with IOS devices.
So it appears that the absence of the Run On list on my PowerBook when running my app in the debugger with 2025 rel 1 is the source of the failure on the PowerBook.
This appears to be a bug.
Feedback is appreciated.

Might it be this?

[Christian Schmitz]

Sep 2024

Okay, so if you run “xcode-select -p” in terminal and you get “/Library/Developer/CommandLineTools”, you can use “sudo xcode-select -s /Applications/Xcode.app” to change back to Xcode app.

“xcode-select -p” shows now “/Applications/Xcode.app/Contents/Developer” and Xojo finally sees simulators.