iOS native extension build fails on "Undefined symbols for architecture armv7"
I'm building a set of native extensions for iOS with Air 3.4, but when I try to build a test actionscript project including the ANE I get the following error:
Undefined symbols for architecture armv7:
"_null", referenced from:
_g_com_adobe_air_fre_fmap in extensionglue.o
(maybe you meant: _sqlite3_bind_null, __ZN7avmplus20BitmapDataJPEGWriter14jpeg_null_charEP18jpeg_common_structPc , __ZN7CString16s_nullTerminatorE , __ZN7avmplus7AvmCore24decrementAtomRegion_nullEPii , _null_name , __ZN7avmplus20BitmapDataJPEGWriter9jpeg_nullEP18jpeg_common_struct , _sqlite3_result_null , __ZN7UString16s_nullTerminatorE , _null_name1 )
ld: symbol(s) not found for architecture armv7
Compilation failed while executing : ld64
My ANE is targetting iOS 5.1, and I've forced Xcode to build the static library just for armv7 ( setting 'Valid Architectures' to 'armv7' and 'Build Active Architecture Only' to 'Yes' )
Tried using Flash Builder 4.6 & 4.7 beta with the same results.
Does anyone have any advice on build settings for ANEs in Xcode, or have experienced this issue before? Cheers.