Forum > macOS / Mac OS X

Error: ld: framework not found AppKit

(1/1)

coda:
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:
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:
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.

rich2014:
complete solution: https://forum.lazarus.freepascal.org/index.php/topic,72497.0.html

coda:
Thanks!

Navigation

[0] Message Index

Go to full version