2

I recently installed Code::Blocks (version 17.12) on my MacBook Pro 2020 which runs on macOS Big Sur, but something is not working and I can't figure out why. I also installed Python Launcher and IDLE and Xcode and XQuartz. Maybe I installed the wrong version? Can anyone help me? Or maybe recommend an alternative that works on macOS? I print screened the error it shows every time I try to run codeblocks and attached it here

2 Answers 2

4

I had the same problem with you. I searched on Google and found this. This was written by Xaviou from the Code::Blocks community. I used revision 12286's CB_20210102_rev12286_macOS-11.1_x64-wx3.1.5.dmg and it worked perfectly on my MacBook running macOS Big Sur 11.1.

Code::Blocks won't work on macOS Catalina and above because Catalina dropped support for 32-bit apps, and Code::Blocks is a 32-bit app. Xaviou rewrote and compiled the code from Code::Block's GitHub repo to make it 64-bit and usable.

4
  • Remember to uninstall and delete any Code::Blocks files you had before installing!
    – he110W0r1d
    Jan 23, 2021 at 3:25
  • Thank you! I just installed the version you sent and it works, but it doesn't run my code. This is the error it shows: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library... I tried installing Xcode but it still doesn't run. Do you know what I have to do?
    – Jon
    Jan 24, 2021 at 11:34
  • Have you tried this? stackoverflow.com/a/52522566/15017153 I'm sorry it took so long to reply -- I forgot about this 😅
    – he110W0r1d
    Oct 3, 2021 at 4:31
  • 1
0

Code Block is not supported to work on BigSur at the moment and the developers need to update it unfortunately.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.