Recent

Author Topic: Linking error - Cocoa problem  (Read 1052 times)

norosz123456

  • Newbie
  • Posts: 3
Linking error - Cocoa problem
« on: August 29, 2023, 11:04:52 am »
Hello!

I use Lazarus v.2.0.10. on macOS m1 max. I do not updated nothing (no lazarus, no Xcode). All of my old projects are run, but if I want to create a new project and run it, or copy and old project and run it too I get error messages:


ld: framework not found Cocoa
An error occurred while linking
Error: Error while linking

I do not know what is the problem, but I can't do my projects. PLS HELP!

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
Re: Linking error - Cocoa problem
« Reply #1 on: October 02, 2023, 08:03:34 pm »
I recommend you consider at least Lazarus 2.2+ and FPC 3.2.2+, because these versions of Lazarus/FPC were greatly optimized and adapted for Apple Silicon, with native compilation of ARM binaries.


JdeHaan

  • Full Member
  • ***
  • Posts: 104
Re: Linking error - Cocoa problem
« Reply #2 on: October 02, 2023, 08:52:55 pm »
Did you install XCode and the CommandLine tools?

 

TinyPortal © 2005-2018