Maximize compatibility with OS X versions lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- MISV · 2015-12-10 10:33 I am currently compiling on Yosemite / xcode 6.4 / lazarus 1.4.2 But I am unsure if my apps will also run on earlier versions? Don't all OS X users more or less upgrade? Or are here still some use mavericks? Can I expect that an app compiled on yosemite will also run on lion? (I decided to keep xcode 6.4 around, so I could increase backward compability) ---------------------------------------------------------------------- Jonas Maebe · 2015-12-10 10:44 Quote from: MISV on December 10, 2015, 11:33:57 amI am currently compiling on Yosemite / xcode 6.4 / lazarus 1.4.2 But I am unsure if my apps will also run on earlier versions? Don't all OS X users more or less upgrade? Or are here still some use mavericks? There are. And apparently you haven't upgraded to the latest version of OS X yet either (which is 10.11, and you are still on 10.10). QuoteCan I expect that an app compiled on yosemite will also run on lion? Yes, if you specify that it should be runnable on Mac OS X 10.7, via FPC's -WM10.7 command line parameteryou (and the LCL) don't call any routines that are only available on OS X 10.8 or higherIn principle, the best way to ensure compatibility is to additionally also link against the SDK for the target OS version (using FPC's -XR command line parameter to point the linker to the SDK), but this is hard as Apple does not ship older SDKs with newer Xcode versions and does not even officially support linking against them using tools from newer Xcode versions (although in general it works). In most cases, there is no problem with linking against the latest SDK, but there have been exceptions in the past. ---------------------------------------------------------------------- MISV · 2015-12-21 11:52 Thanks for he info - I will try investigae if I can Lazarus to call FPC with the compability paramater you are referring to. ---------------------------------------------------------------------- MISV · 2016-01-14 10:06 I should simply add "-VM10.7" to project options > compiler options > additions and overrides ?