Recent

Author Topic: Downward compatibility of applications built with Big Sur  (Read 2531 times)

stem

  • Jr. Member
  • **
  • Posts: 76
Downward compatibility of applications built with Big Sur
« on: June 28, 2021, 04:00:23 pm »
Hi,

I'm thinking about buying the Mac mini 2020 M1 with macOS Big Sur.

Am I right that my application (built with Lazarus) will only work with M1
processors?

How can I ensure that my application will also run on older systems
(Intel CPU, macOS Mojave/Catalina)? Cross-compile for Intel chips?

Thank you.


stem

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 349
Re: Downward compatibility of applications built with Big Sur
« Reply #1 on: June 29, 2021, 04:35:02 pm »
Hi,

I also have Mac Mini on M1 chip and use it compile our app.

I compile 2 versions for my app - for Intel and M1, and then I use lipo command to create Universal Binary.

FPC and Lazarus allows you compile for x86_64 and aarch64. See target in Project Options for your app. Or use a command line - lazbuild

I tested my app - works even with High Sierra. And I think with older MacOSX versions.

In .plist file in APP bundle I added the following code:

<key>LSMinimumSystemVersion</key>
<string>10.10.0</string>

It limits compatibility with macOS 10.10 (because I cannot test with very old versions).

 

TinyPortal © 2005-2018