Developing macOS applications using Delphi

1. Introduction

Rendering on macOS doesn’t work for now, when compiled with Delphi.

But basic units compile and 3D loading/processing works. You can test it with a command-line scene_information_cli_tool from our examples. It can be built and works as a command-line tool on macOS.

It is also useful to connect Delphi to your Mac to build iOS applications.

2. Connecting to macOS using PAServer

Delphi IDE and compilers always run on Windows. From Windows they access other systems, like a remote macOS machine, and run applications there.

Connecting to your macOS machine and building for it:

  1. Similar to using Delphi to build Linux applications, you need to install PAServer on macOS.

  2. Then in Delphi (from Windows), go to "Options → Deployment → Connection Profile Manager" and add a new connection. Make sure everything works by "Test Connection" button.

  3. Then in Delphi initialize SDK for macOS, in the "Options → Deployment → SDK Manager". This should import all libraries from macOS to your Windows.

    Note
    If the process asks for confirmation when overwriting, you want to say "Yes" to have latest state from macOS copied into your Windows.
    Note
    You will have to rerun the import process each time the libraries on macOS possibly changed, like after a system upgrade.

That’s it. Now switch the project’s platform to "macOS 64-bit" or "macOS ARM 64-bit" and it should just build and run. We tested both Intel-based and Arm-based (Aarch64 actually) versions of the macOS platform, and they only need one connection, to any macOS machine, it seems.


To improve this documentation just edit this page and create a pull request to cge-www repository.