Build extension with minimum iOS version

I’m making an experimental OpenFL extension for iOS which include some external frameworks. When I try to rebuild it with lime rebuild . ios, one of these frameworks warns me that it requieres a minimum iOS version of 6.0, and I see the compilation code has a flag -miphoneos-version-min=5.0.

I’ve been looking how to change it so I can specify this minimum version. I’ve tried adding in build.xml the tag <ios deployment="6.0" /> with no result, and also specify the flag <compilerflag value="-miphoneos-version-min=6.0" />, but it is inserted before the flag I mentioned before, overriding my setting with the minimum version 5.0.

Could anyone help me to build this extension with the required iOS minimum version?

Finally I found out the way to achieve this task. There is no way to specify this from the build.xml file, so I had to modify the compiler toolchain directly, found at {haxelib-root}/hxcpp/{version}/toolchain/iphoneos-toolchain.xml

Here, I had to locate this line:

  <flag value="-miphoneos-version-min=5.0" unless="HXCPP_GCC" />

And update it’s value for the one I needed.

1 Like