Can't link library at armv7 and can't deploy on armv6 [iOS]

34 views
Skip to first unread message

david rene comba lareu

unread,
Jan 6, 2014, 7:16:17 AM1/6/14
to haxe...@googlegroups.com
Hi everyone

NOTE: i'm using openFL 

i'm trying to compile and link this example: https://github.com/ericamccowan/Haxe_Extension_Test so later i can extends it into a camera/select image/get app directory functions as i have in android with JNI.

but for some reason, when i run lime test ios with emulator (SDK 7) or with a device (with iOS 6.1.3), using binaries="flat" or == "armv7" i get:

Undefined symbols for architecture armv7:
  "_iOS_Native_register_prims", referenced from:
      _main in Main.o
ld: symbol(s) not found for architecture armv7

when i change the binaries to armv6, it does compile and link, but fails at installing the app:

[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
AMDeviceInstallApplication failed: -402620415

the library has been compiled with:

haxelib run hxcpp Build.xml -Diphoneos
haxelib run hxcpp Build.xml -Diphoneos -DHXCPP_ARMV7
haxelib run hxcpp Build.xml -Diphonesim

from the original Build.xml (https://github.com/ericamccowan/Haxe_Extension_Test/blob/master/native/ios/project/Build.xml) i only added this, to generate the v7. library:

<set name="ARM_ARCH" value="-v7" if="HXCPP_ARMV7" />

and replaces the iphoneos line with:

<set name="name_extra" value=".iphoneos${ARM_ARCH}" if="iphoneos"/>

can anyone give me a hint of how i can accomplish the following:

1) what "binarie" value should be set to target iOS 6 and iOS 7 on all devices?
2) depending the value of the binarie property, where i could look to solve the deployment problem or the linking problem?

Any hint or help is welcome ! :D

Regards,

Reply all
Reply to author
Forward
0 new messages