Mac requires OS X 10.12?

I am writing another app that works ok with neko that is using starling. What is different about this one is I am using the stablexui library for menu’s. Where the other is not.

ran a verbose build and see a lot of these:

Creating PCH directory "/Users/frankh/Documents/desktopdevelopment/quicktracker/Export/mac64/cpp/release/obj/obj/darwin64/__pch/haxe"
  • Precompile /Users/frankh/Documents/desktopdevelopment/quicktracker/Export/mac64/cpp/release/obj/obj/darwin64/__pch/haxe/hxcpp.h.gch
  • Running command: xcrun --sdk macosx10.12 clang++ -Iinclude -c -fvisibility=hidden -stdlib=libstdc++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -O2 -I/usr/local/lib/haxe/lib/hxcpp/3,4,64/include -DHX_MACOS -m64 -Wno-parentheses -Wno-null-dereference -Wno-unused-value -Wno-format-extra-args -Wno-bool-conversion -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=331 -frtti -Wno-invalid-offsetof -x c+±header -o /Users/frankh/Documents/desktopdevelopment/quicktracker/Export/mac64/cpp/release/obj/obj/darwin64/__pch/haxe/hxcpp.h.gch /usr/local/lib/haxe/lib/hxcpp/3,4,64/include/hxcpp.h
  • Running command: xcrun --sdk macosx10.12 clang++ -Iinclude -c -fvisibility=hidden -stdlib=libstdc++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -O2 -I/usr/local/lib/haxe/lib/hxcpp/3,4,64/include -DHX_MACOS -m64 -Wno-parentheses -Wno-null-dereference -Wno-unused-value -Wno-format-extra-args -Wno-bool-conversion -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=331 -x c++ -frtti -Wno-invalid-offsetof ./src/lime/utils/AssetCache.cpp -o/Users/frankh/Documents/desktopdevelopment/quicktracker/Export/mac64/cpp/release/obj/obj/darwin64/040866ce_AssetCache.o
  • Link: ApplicationMain: xcrun --sdk macosx10.12 clang++ -o ApplicationMain -stdlib=libstdc++ -framework Cocoa -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -m64 @obj/darwin64/all_objs
    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
    ld: warning: object file (obj/darwin64/2c011d77_Welcome.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/2c011d77_Reports.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/2c011d77_NewTime.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/2c011d77_Help.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/2c011d77_About.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/6f75ff30_Dialogs.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/6f75ff30_Loader.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/8e7e6fb8_Stdout.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/62b8429e_Sqlite.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/e930d49e_SqliteResultSet.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/e930d49e_SqliteConnection.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/62b8429e_Connection.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/62b8429e_ResultSet.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/740ad288_FileSystem.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_VBox.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Toggle.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Tip.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_StateButton.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Slider.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Scroll.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Options.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_InputText.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_HBox.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Floating.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Button.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Text.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Box.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Bmp.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/46012769_Widget.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/a4a7ca05_Transition.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f37ffb4f_Slice9.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f37ffb4f_Slice3.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f37ffb4f_Rect.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f37ffb4f_Paint.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f37ffb4f_Skin.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/0f690413_SizeTools.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/0f690413_BtnState.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/6e5ead2e_Layout.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/4022b124_WidgetEvent.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/4022b124_ScrollEvent.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/c4bc6924_UIBuilder.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f5573300_TweenSprite.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f5573300_Err.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f5573300_DynamicList.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/f5573300_Assets.o) was built for newer OSX version (10.12) than being linked (10.6)ld: warning:
    object file (obj/darwin64/5cdc6111_Iterable.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/5cdc6111_Iterator.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/138a0a19_Object_Impl_.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/7a20e3b0_Endian_Impl_.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/1afa2a8e_CompressionAlgorithm_Impl_.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/881c6ab1_ByteArrayData.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/881c6ab1_IDataInput.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/881c6ab1_IDataOutput.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/a796b11e_ByteArray_Impl_.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/881c6ab1_Assets.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/881c6ab1_AssetCache.o) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (obj/darwin64/881c6ab1_IAssetCache.o) was built for newer OSX version (10.12) than being linked (10.6)

When running openfl test neko -verbose I got this:

Running command: BUILD
  • Copying library file: /usr/local/lib/haxe/lib/lime/4,0,2/ndll/Mac64/lime.ndll -> Export/mac64/neko/release/bin/Quicktracker.app/Contents/MacOS/lime.ndll
  • Creating directory: Export/mac64/neko/release/bin/Quicktracker.app/Contents/MacOS
  • Copying library file: /usr/local/lib/haxe/lib/sqlite/1,0,9/ndll/Mac64/sqlite3.ndll -> Export/mac64/neko/release/bin/Quicktracker.app/Contents/MacOS/sqlite3.ndll
  • Running command: haxe Export/mac64/neko/release/haxe/release.hxml
  • Running command: nekotools boot /Users/frankh/Documents/desktopdevelopment/quicktracker/Export/mac64/neko/release/obj/ApplicationMain.n
  • Copying file: Export/mac64/neko/release/obj/ApplicationMain -> Export/mac64/neko/release/bin/Quicktracker.app/Contents/MacOS/Quicktracker
  • Running command: chmod 755 Export/mac64/neko/release/bin/Quicktracker.app/Contents/MacOS/Quicktracker

I just googled this error, because I am also hitting it.

osx - 10.10.5
haxe - 3.4.2
openfl - 4.9.1-Lvx4Vf
lime - 4.0.2

EDIT: for what it’s worth, openfl test neko produces a binary that I can run. openfl build mac does not.

Interestingly enough, the same project on my laptop (also on OSX 10.10.5) doesn’t have this problem. There are a few version differences, so I’m guessing it’s a regression or error in one of these:

haxe - 3.4.0
openfl - 4.8.1-LhVLtA
lime - 3.7.4

1 Like

So yesterday I decided to play with Haxeflixel and while downloading it set openfl to 3.9.1 and Lime to an older version as well can’t remember what version it was. After decideding to come back to my desktop app project and setting everything back to the latest openfl and lime I no longer saw the the 10.12 minimum OSX error. As of right now I am able to run the app on my mac again.

1 Like

This issue seems to be back for no apparent reason.

Does this occur running the Lime command-line tools? Does this occur on Neko builds, or only C++ desktop builds?

Only happens on the C++ builds desktop.

That means that we are building lime.dylib alright for your OS version, but something is happening locally when compiling using Xcode

Does your Lime have this line?

Can you try and find the value of this, such as:

<log info="macOS deployment target: ${MACOSX_DEPLOYMENT_TARGET}" />

There’s the deployment target, but then there’s also which SDKs are installed in Xcode as well

(you can also try removing this define from include.xml, and see if it helps, but do clean builds between tests)

After restarting my machine the issue disappeared. By the way, Lime did not have that line.

I have the same issue.

I tried to log ${MACOSX_DEPLOYMENT_TARGET}:
<log info="macOS deployment target: ${MACOSX_DEPLOYMENT_TARGET}" />
macOS deployment target: MACOSX_DEPLOYMENT_TARGET

if I set haxedef:

the output is the same:
macOS deployment target: MACOSX_DEPLOYMENT_TARGET

And it’s generated with 10.12 target:

28

haxelibs:

openfl: [6.1.2]
lime: 5.3.0 5.4.0 [5.5.0]
hxcpp: 3.4.64 3.4.185 [3.4.188]

–EDITED

added to .lime/config.xml:
<set name="MACOSX_DEPLOYMENT_TARGET" value="10.6" />
and the log info is changed to:macOS deployment target: 10.6

but the issue is still exist
–EDIT

ok, after I added set the variable (so set instead of haxedef) and reboot my machine, the issue is gone.
so the
<haxedef name="MACOSX_DEPLOYMENT_TARGET" value="10.6" />
is not working, but the
<set name="MACOSX_DEPLOYMENT_TARGET" value="10.6" />
is working… after reboot end clean compile

Does this not work?

<define /> should work the same as both <set /> and <haxedef /> combined

Did you end up modifying your .profile, or something else to add it to your environment variables?