[IOS] Matrix3D build error


I have El Capitan with Xcode 7.3.1 install [IOS SDK 9.3]
hxcpp [3.3.49]
lime [2.9.1]
openfl [3.6.0]

I have this error with Matrix3D when i build for IOS and when i change openfl 3.6.1, i don’t have it.
It seems error come from last version of openfl…
Anybody have this issue ?

`Error: While running :xcrun --sdk iphoneos9.3 clang++ -I/Users/affranchis/Documents/Haxe/AFDT/Export/ios/AFDT/haxe/build/Release-iphoneos-v7/obj/iphoneos-c11-v7/__pch/haxe -Iinclude -c -stdlib=libc++ -O2 -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -miphoneos-version-min=5.0 -fobjc-arc -DOBJC_ARC -DENABLE_BITCODE=YES -fembed-bitcode -Wno-parentheses -Wno-null-dereference -Wno-unused-value -Wno-bool-conversion -fno-stack-protector -DIPHONE=IPHONE -DIPHONEOS=IPHONEOS -DSTATIC_LINK -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=330 -I/usr/local/lib/haxe/lib/hxcpp/3,3,49/include -fexceptions -fstrict-aliasing -x c++ -Wno-invalid-offsetof ./src/openfl/geom/Matrix3D.cpp -o/Users/affranchis/Documents/Haxe/AFDT/Export/ios/AFDT/haxe/build/Release-iphoneos-v7/obj/iphoneos-c11-v7/8f922b90_Matrix3D.o
./src/openfl/geom/Matrix3D.cpp:519:122: error: no member named 'StaticCast' in 'Array<Dynamic>'
HXLINE( 361)            HX_VARI_NAME( ::Array< ::Dynamic>,this1,"this") = ::Array_obj< ::Dynamic>::__new()->__SetSizeExact(null()).StaticCast< ::Array< ::Dynamic> >();
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
./src/openfl/geom/Matrix3D.cpp:519:154: error: expected '(' for function-style cast or type construction
HXLINE( 361)            HX_VARI_NAME( ::Array< ::Dynamic>,this1,"this") = ::Array_obj< ::Dynamic>::__new()->__SetSizeExact(null()).StaticCast< ::Array< ::Dynamic> >();
                                                                                                                                               ~~~~~~~~~~~~~~~~~~~ ^
./src/openfl/geom/Matrix3D.cpp:519:156: error: expected expression
HXLINE( 361)            HX_VARI_NAME( ::Array< ::Dynamic>,this1,"this") = ::Array_obj< ::Dynamic>::__new()->__SetSizeExact(null()).StaticCast< ::Array< ::Dynamic> >();
3 errors generated.
make: *** [build-haxe-armv7] Error 1`

Alright, I found out what was wrong with build for IOS…Haxe 3.3…

A little background for the story.
We must develop our app on the new Ipad Pro with ios 9.3 installed. Great… but not !
Xcode 7.2.1 can’t build the app on this ipad until we update it to 7.3.1 and to do that we must installed El Capitan.

So after download El Capitan, Xcode 7.3.1, i must re-install Haxe because El Capitan has flushed all my usr data. Haxe 3.3 avaibable, i go for it.

That where the problem come from, i can’t run openFL 3.6.0 with Haxe 3.3 install on Mac OSX.
I delete Haxe 3.3 and install Haxe 3.2 and my project build with success.

In sum:
El Capitan 10.11, Xcode 7.3.1
Haxe 3.2.205
OpenFL 3.6.1
Lime 2.9.1

Maybe somebodt know why ?

Looks like a bug in hxcpp,

you should report it on https://github.com/HaxeFoundation/hxcpp/issues/

done ! Will see the result.