Hi, I am trying to build an ane with the frameworks for an ActionScript mobile app. I can build the ane just fine. However, when I try to export a release build, I get this error:
Error occurred while packaging the application:
Undefined symbols for architecture armv7:
"__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEmPKc", referenced from:
__ZN7AstNode21new_UnaryOperatorNodeEPcPS_ in OvalCompiler(AstNode.o)
"__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm", referenced from:
__Z8toStringIiENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEET_ in OvalCompiler(OvmCodeGenerator.o)
"__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc", referenced from:
__ZN16OvmCodeGenerator20generateCode_idValueEP7AstNodeP10OvmContextRNSt3__16vectorI9OvmData_tNS4_9allocatorIS6_EEEE in OvalCompiler(OvmCodeGenerator.o)
__ZN16OvmCodeGenerator28generateCode_declareVariableEP7AstNodeP10OvmContextRNSt3__16vectorI9OvmData_tNS4_9allocatorIS6_EEEE in OvalCompiler(OvmCodeGenerator.o)
Here is my platformoptions.xml:
4.6.0
-ios_version_min 6.0
-framework Foundation
-framework UIKit
-framework CoreBluetooth
-framework CoreGraphics
-framework CoreMotion
-framework ExternalAccessory
-F [frameworks directory]
-framework OvalCompiler
-framework RobotKit
-framework RobotUIKit
This is my extension.xml:
RobotAneDemo
1.0.0
<platform name ="default">
<applicationDeployment/>
</platform>
<platform name ="iPhone-ARM">
<applicationDeployment>
<nativeLibrary>libRobotAneDemo.a</nativeLibrary>
<initializer>AirRobotExtInitializer</initializer>
</applicationDeployment>
</platform>
And this is my adt script:
adt -package -target ane RobotController.ane extension.xml -swc Interface.swc -platform iPhone-ARM -platformoptions platformoptions.xml -C ios/ . -platform default -C default/ .
I was wondering if anyone knew why this is failing. We can do apps in Objective-C or Swift, but we are more familiar with ActionScript. If we cannot get an ANE working, we can always do the apps entirely in Objective-C or Swift.