Sign in Join
Wiki copytemporary

Mac Catalyst

(macOS only)

(iPadOS only)

With macOS 10.15 Apple introduced a new feature for building and running iPad applications on macOS. The feature is named Mac Catalyst.

Apple specifically noted that the apps designed for iPad can be run on Mac computers. Exclusive iPhone apps cannot be run on macOS.

System Support

Mac Catalyst is available on macOS 10.15 Catalina and later (?). It's not available on the prior macOS 10.14.

One might find "iOSSupport" system libraries at

text
/System/iOSSupport/System/Library/Frameworks

These are run-time frameworks built to support Mac Catalyst.

MacOSX SDKs files already include the necessary iOSSupport reference (.tbd) files.

text
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/iOSSupport

Limitations

Free Pascal Compiler Support

A new OS target is necessary for the compiler. The changes for the target are as following:

text
Load command 8
      cmd LC_BUILD_VERSION
  cmdsize 32
 platform macCatalyst.  (platform 6)
      sdk 13.4
    minos 13.4
   ntools 1
     tool ld
  version 556.4

During linking the linker verifies that the platform of the object file generated by FPC matches system linking files.

as of today FPC supports 3 platforms: macOS, iOS and iPhoneSimulator. For Mac Catalyst the additional platform is needed.

Ld

Building Apps

While Mac Catalyst is designed to provide an ability to rebuild iPad apps for macOS in the first place, it is also possible to build a standalone UIKit app for macOS exclusively.

However, such an application might likely act as a proof-of-concept or a demo app, and might not be accepted for distribution in the App store.

External links


From the Free Pascal wiki, page "Mac Catalyst", as it stood on 2020-06-15 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.