When I try to run a release build created for mac I receive the following message:
You can’t use this version of the application “Frostfire” with this version of OS X.
You have OS X 10.11.6. The application requires OS X 10.12 or later.
I create this build like this: openfl build mac -final -clean
At the same time if I try just to run supposedly the same version of the game with "openfl test mac -final" it works fine (although its icon is layered with a semi-transparent crossed circle hinting that not everything is totally fine).
Am I doing something wrong or we really need OS X 10.12 now? Is there a way to lower the requirement? Could it be something about Xcode settings?
We might be doing something wrong that is enforcing a minimum version, but this is not intentional. We used to use old versions of macOS for doing our builds to absolutely ensure we didn’t raise the minimum version required, but that because too difficult to maintain, as iOS builds tend to require a new version
That 10.12 requirement is rather unfortunate as Sierra was released not so long ago and I guess there are many people who haven’t upgraded yet. Do you think “rebuild mac” might help (to embed my older osx version number)?
Ok, “rebuild mac” didn’t help, but your links gave me an idea, I tried it and it works!
I just set MACOSX_DEPLOYMENT_TARGET environment variable to 10.6 (an arbitrary value) and now the built application starts normally! I have no idea why it works, I checked that the variable didn’t have value before. To be honest I don’t even know how haxedefs are related to environment variables…
in a project file. That will print out the value, somehow(?) it’s getting set to something higher. We’ll want to check before it reaches the OpenFL/Lime haxelibs, since the value gets set there if undefined
Does this occur when you perform a build on the local machine, or does this occur when building on one Mac, and testing in an older version later? Thanks
I had assumed that your local machine would default to your current OS version if it is not set, but there is a define called MACOSX_DEPLOYMENT_TARGET which is supposed to control this.
I am not able to get Xcode running in my older Mac VM at the moment, but I am able to use release OpenFL and Lime versions with the Neko target, which means that our native binaries should be built for macOS 10.7 or greater as intended
Perhaps there’s something additional needed in the default flags used when we build for C++? Does openfl test neko work on your machine?