MacOS Sonoma and Xcode 15

Mac OSX specific forum
CoopsOz
User
User
Posts: 11
Joined: Mon Jul 12, 2021 9:39 am

MacOS Sonoma and Xcode 15

Post by CoopsOz »

I've updated my M1 MacMini to Sonoma and Xcode 15. Attempts to compile any programs on PureBasic 6.02 LTS - C Backend (MacOS X - arm64) generate a "PureBasic - Linker error" with the text -
Undefined symbols for architecture arm64:
"_objc_msgSend$AddGadgetColumn:title:width:", referenced from:
_PB_ListIconGadget2 in Gadget.a(ListIconGadget.o)
"_objc_msgSend$AddGadgetItem:text:image:flags:", referenced from:
_PB_AddGadgetItem3 in Gadget.a(AddGadgetItem.o)
_PB_AddGadgetItem2 in Gadget.a(AddGadgetItem.o)
_PB_AddGadgetItem in Gadget.a(AddGadgetItem.o)
...

I see form a previous post that a reversion to Xcode 14 will solve this, BUT I cannot run Xcode 14. Error message is - In order to use “Xcode.app”, you need to update to the latest version. - The version of Xcode installed on this Mac is not compatible with macOS Sonoma. Download the latest version for free from the App Store.)
So, until PureBasic is updated it appears that it won't run under Sonoma. If anyone has a fix, please let me know.
Mac Mini M4, 2024
MacBook Air M3 2024
Asus ROG Ally
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: MacOS Sonoma and Xcode 15

Post by mk-soft »

Please try PB v6.03 Beta 9 with C-backend.

Have you also started Xcode once to complete the installation.
Have you also installed or updated the Command Line Developer Tools?

See bug report: viewtopic.php?p=608405#p608405
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
CoopsOz
User
User
Posts: 11
Joined: Mon Jul 12, 2021 9:39 am

Re: MacOS Sonoma and Xcode 15

Post by CoopsOz »

Thanks for the reply.
Update - since I uninstalled Xcode 14, deleted Xcode 14 and reinstalled Xcode 15 the error message is now "The required compiler cannot be found:"
According to this sitehttps://mac.install.guide/commandlinetools/2.html, Command Line Tools are installed.
I cannot find PB v6.03 Beta 9 with C-backend, if you could let me know where, I would be grateful.
Mac Mini M4, 2024
MacBook Air M3 2024
Asus ROG Ally
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: MacOS Sonoma and Xcode 15

Post by mk-soft »

I have a Mac Mini 2018 (Intel) and have not yet upgraded to Sonoma.
But to version Ventura v13.6, and therefore also to Xcode v15 and Command Line Tools v15.
Runs with PB v6.02 with C-backend. (ASM not more)

But I don't know if there are problems with M1/M2 (Arm).
Maybe reinstall the Command Line Tools once again.
You can download them here as DMG. AppleID required for login

Link: https://developer.apple.com/download/all/

Test installed version. Terminal ...

Code: Select all

Michael@Michaels-Mini-2 ~ % xcode-select -p
/Library/Developer/CommandLineTools

Michael@Michaels-Mini-2 ~ % git --version
git version 2.39.3 (Apple Git-145)

Michael@Michaels-Mini-2 ~ % gcc --version
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Michael@Michaels-Mini-2 ~ % 
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
CoopsOz
User
User
Posts: 11
Joined: Mon Jul 12, 2021 9:39 am

Re: MacOS Sonoma and Xcode 15

Post by CoopsOz »

Thanks Michael, but no joy. I still get the "The required compiler cannot be found" error.
I had an older version of Command Line Tools

Code: Select all

minim1@MacMini ~ % xcode-select -p
/Library/Developer/CommandLineTools
minim1@MacMini ~ % git --version
git version 2.30.1 (Apple Git-130)
So I updated...

Code: Select all

minim1@MacMini ~ % xcode-select -p
/Library/Developer/CommandLineTools
minim1@MacMini ~ % git --version
git version 2.39.3 (Apple Git-145)
minim1@MacMini ~ % gcc --version
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
minim1@MacMini ~ % 
But sadly, the error persists under MacOS Sonoma, so if you have any other thoughts, I'd be glad to hear them.
Mac Mini M4, 2024
MacBook Air M3 2024
Asus ROG Ally
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: MacOS Sonoma and Xcode 15

Post by mk-soft »

Just as a suspicion.

Do you have the PB version for M1 (Arm) installed on the Mac Mini M1?
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
CoopsOz
User
User
Posts: 11
Joined: Mon Jul 12, 2021 9:39 am

Re: MacOS Sonoma and Xcode 15

Post by CoopsOz »

Understand your question, but to be clear, PB worked fine on the M1 mini until the OS update to Sonoma. I've since updated PB, Xcode and the Command Line tools.

The about screen at boot shows the installed version is;

Code: Select all

This is the free version of PureBasic 6.02 LTS - C Backend (MacOS X - arm64)
PB (intel) still runs on the I7 Mini, which I want to sell to help fund a Studio, but the new machine will come with Sonoma, and I believe that PB and Sonoma is the issue.
Mac Mini M4, 2024
MacBook Air M3 2024
Asus ROG Ally
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: MacOS Sonoma and Xcode 15

Post by mk-soft »

So,
I was able to test this with my brother via Facetime.

HW: Mac Mini M2 Pro
MacOS: Sonoma

- Only Command Line Tools 15 installed.
- PB v6.02 Demo (M1/M2) installed.

- Purebasic IDE starts ;)
- Test code compile and start works ;)
- Quit Purebasic IDE hangs :(

So something must be wrong with your installation.
Maybe delete the purebasic.prefs
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
CoopsOz
User
User
Posts: 11
Joined: Mon Jul 12, 2021 9:39 am

Re: MacOS Sonoma and Xcode 15

Post by CoopsOz »

Solved.
Deleting the purebasic.prefs file did the trick. Many thanks for the time and effort you have put it to solve this for me, it is much appreciated.
Also, I can report that the IDE doesn't hang on exit.
Mac Mini M4, 2024
MacBook Air M3 2024
Asus ROG Ally
Post Reply