A framework on the Mac is a directory hierarchy that contains headers, dylibs, and resources.
Available macOS Frameworks
The frameworks that can be used are in the
Examples of frameworks:
Delphi RTL uses the CoreFoundation and CoreServices frameworks.
Command-Line Options for Frameworks
Three command-line options (for BCCOSX and XLINK) pertain to frameworks:
--framework Option for BCCOSX.EXE, the C++ Compiler for macOS
--framework option in a BCCOSX command specifies the list of macOS frameworks you want to link to, such as:
BCCOSX does not use this option directly—rather the compiler passes the option to the linker.
--framework switch instructs the compiler to tell the linker (XLINK) to link with the dynamic shared library of the specified framework.
--Ff Option for XLINK.EXE, the macOS Linker
--framework option in a BCCOSX command is turned into an
-Ff option when the compiler invokes the linker.
If you are calling the linker directly, then use the
-Ff option instead of the
--framework compiler option. For example, to use the CoreFoundation framework, specify the following option to the linker:
The linker searches for the specified frameworks in the remote library paths (paths specified with the
-F Option for BCCOSX.EXE, the C++ Compiler for macOS
-F option adds a specified directory to the framework header search path.
--sysroot is specified, paths that start with '/' will have the value of
To specify the macOS frameworks that are to be used in a RAD Studio project, you need to edit the SDK associated with your application.
To associate an SDK to your application, right-click on a node under the Target Platforms in the Project Manager, and select Properties to open the Platform Properties dialog box. Use that dialog to select the SDK you want to associate to the selected platform.
You can manage your SDKs from Tools > Options > Deployment > SDK Manager