Page 1 of 1

os x building apps for older versions

Posted: Fri Sep 13, 2019 11:32 pm
by jdratlif1261
I've read that the next version of OS X will drop support for 32-bit, so I need to recompile my apps for modern versions of OS X. I haven't used Mac since Lion, but I have a Mac Book with Mojave.

I installed Xcode, but when I try to build wxMac, it tried to build with support for Lion, and it didn't find the SDK to do that. I added a configure parameter, something like -with-mac-osx-min-version=10.14 and it would build, but I think that will make it so that my apps will only work on Mojave and newer.

I'd like to target Yosemite and above (>= 10.10). I picked that one since it's what Chrome says is the oldest version it will run on.

The things I've read online have only confused me. Some say to use older SDKs, to get them from old versions of Xcode and stick them in my Xcode directory somehow. Some say I can use some kind of deployment version target to make sure it will work on older version of OS X (ignoring new features or whatever).

What do I need to do to build software with wxWidgets that is compatible with Mac OS X 10.10 Yosemite and later (including the upcoming 10.15 which won't have 32-bit support)?

Thanks.

Re: os x building apps for older versions

Posted: Mon Sep 16, 2019 1:22 pm
by evstevemd
I think Mavericks is the default version supported by default on wxWidgets build (Am using CMake, so not sure bout other builds). So -with-mac-osx-min-version=10.9 should be OK.

About building for 10.15, it won't be possible I guess. Why not have two wxWidgets and then build two version of same app?