Recent

Author Topic: Error: ld: framework not found AppKit  (Read 927 times)

coda

  • New Member
  • *
  • Posts: 18
Error: ld: framework not found AppKit
« on: August 29, 2025, 11:22:00 am »
Brand new install of the latest version on macOS need some help. Have installed the same on Linux and windows and both work as expected.

macOS 15.6.1  - after reading the thread here on 15.4 issues did revert to an older xcode-tools (2410) but no improvement.

Issue - built a simple one button test program to test macos install

results in :
===
Compile Project, Target: /Volumes/HdExternal/Users/dzing/temp/project1: Exit code 1, Errors: 3, Warnings: 1
Error: -macosx_version_min has been renamed to -macos_version_min
Warning: ld: warning: support for macOS with 10.0 minimum deployment target is deprecated and will be removed in a future release
Error: ld: framework not found AppKit
An error occurred while linking
Error: Error while linking
====

Error 1 - environmentoptions.xml has
<ExternalTools Version="3">
   <LinkerOptions Value="-XR/Library/Developer/CommandLinesToos/SDKs/MacOSX.sdk -k-macos_version_min -k13.0"/>
</ExternalTools>

so don't know where the renamed error is coming from.

don't know about the other two errors, so hoping for help.

coda

  • New Member
  • *
  • Posts: 18
Re: Error: ld: framework not found AppKit
« Reply #1 on: August 30, 2025, 04:33:26 pm »
This looks to be in the wrong forum. Sorry about that. Should be in Installation/MacOS - there are several post with similar issues.  Trying to make sense of them but  tbh its hard going.   

Will some kind admin please move this?

Thaddy

  • Hero Member
  • *****
  • Posts: 18376
  • Here stood a man who saw the Elbe and jumped it.
Re: Error: ld: framework not found AppKit
« Reply #2 on: August 30, 2025, 05:18:04 pm »
Please not move: we also have to make these changes.
- the version should be set to at least 10.5, not 10, in most cases with up-to-date macos installs even 11 or higher.
- the renaming should be done in versioned code too.
I did that by hand.

It is already answered elsewhere on the forum a couple of (2) months ago. More specific the versioning.
It may already be in trunk, but I have to test that. My macos freepascal trunk is "stale", about two months old.
« Last Edit: August 30, 2025, 05:26:42 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

rich2014

  • New Member
  • *
  • Posts: 35
Re: Error: ld: framework not found AppKit
« Reply #3 on: October 16, 2025, 04:35:23 pm »

coda

  • New Member
  • *
  • Posts: 18
Re: Error: ld: framework not found AppKit
« Reply #4 on: October 19, 2025, 12:19:05 pm »
Thanks!

 

TinyPortal © 2005-2018