iOS Question [SOLVED] Unable to find the Xcode version.

moore_it

Well-Known Member
Licensed User
Longtime User
I have a problem with macOS 26.5 on mac mini m4: when I start the local server with the terminal, I always see this error.

Unable to find the Xcode version.

I search in the forum and try the proposed solutions, but they don't work.

Do you have any ideas?

Thank you.
 
Last edited:
Solution
Looks like xcode-select doesn't point to the fully installed xcode.

You can check it with:
B4X:
xcode-select -p

And set it with something like:
B4X:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Then check xcodebuild -version

aeric

Expert
Licensed User
Longtime User
You need to open Xcode at least once after installation. Better is to create a blank project too. Then close it and run b4i-bridge.
 
Upvote 0

moore_it

Well-Known Member
Licensed User
Longtime User
Hi aeric, yes for new project but how i do for run b4i-bridge when the server not start ?

Thanks for your help !
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Hi aeric, yes for new project but how i do for run b4i-bridge when the server not start ?

Thanks for your help !
Are you able to open Xcode?
You must open the Xcode app.
Maybe at first run it will create some kind of config file that required by b4i-bridge to read and detect it.
 
Upvote 0

moore_it

Well-Known Member
Licensed User
Longtime User
Yes i able to start Xcode !
The xcode app is open !
for run b4i-bridge i need to open the b4iServer on local machine but it not start
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Please copy the error message and paste here.
Try to close your terminal after you have run Xcode and run again.
 
Upvote 0

moore_it

Well-Known Member
Licensed User
Longtime User
Thanks for the help. I'm not in the office right now, but I'll try as soon as I get back!
 
Upvote 0

moore_it

Well-Known Member
Licensed User
Longtime User
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
 
Upvote 0
Top