Recent

Author Topic: [SOLVED]How to solve : ld: framework not found: Cocoa error  (Read 1214 times)

BeanzMaster

  • Sr. Member
  • ****
  • Posts: 272
Hi to all a friend of mine has installed latest Lazarus on his macos BIG without problems but when he want to compile a project he have
ld: framework not found: Cocoa

Anyone say how to solve it ?

Thanks in advance
« Last Edit: July 30, 2020, 09:55:09 am by BeanzMaster »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1440
  • Former Delphi 1-7, 10.2 user
Re: How to solve : ld: framework not found: Cocoa error
« Reply #1 on: July 29, 2020, 03:23:38 am »
Did he follow the necessary steps? I'm guessing he did not install Xcode and/or the Xcode command line tools first.
Lazarus 2.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r65070 FPC 3.3.1 r49223 macOS 11.2.3 aarch64 Xcode 12.4
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

BeanzMaster

  • Sr. Member
  • ****
  • Posts: 272
Re: How to solve : ld: framework not found: Cocoa error
« Reply #2 on: July 29, 2020, 08:38:28 am »
Yes he installed XCode 11.6 from the store but "sudo xcode-select --install" install "command line tool beta for xcode 12"  :o He'll try to install xcode and command line tool from ADC

Thanks

BeanzMaster

  • Sr. Member
  • ****
  • Posts: 272
Re: [SOLVED]How to solve : ld: framework not found: Cocoa error
« Reply #3 on: July 30, 2020, 09:56:03 am »
It's ok he uninstall all and redo installation, by following my instructions.

All is done.

Thanks

circular

  • Hero Member
  • *****
  • Posts: 3712
    • Personal webpage
Re: [SOLVED]How to solve : ld: framework not found: Cocoa error
« Reply #4 on: April 18, 2021, 11:24:40 am »
Just an up to mention that after some system update, I had to update Xcode and run the command lines again to get it working.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018