Quantcast
Channel: Adobe Community : Popular Discussions - AIR Development
Viewing all articles
Browse latest Browse all 24121

Undefined symbols for architecture armv7

$
0
0

Hello,

 

I'm in the process of creating an ANE for an iOS SDK and I'm encountering issues when using the generated ANE in a test project.

 

When trying to debug the app on the device via Flash Builder here is the error I'm getting:

 

Error occurred while packaging the application:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_ASIdentifierManager", referenced from:      objc-class-ref in com.mycompany.MySDKANE.o
ld: symbol(s) not found for architecture armv7
Compilation failed while executing : ld64

 

It looks like the error is saying that I've not added the AdSupport.framework when packaging my ANE.

 

When I look at the ANT script I've implemented I can see that the platform.xml file correctly lists all the iOS frameworks I need.

 

Here is an excerpt of my ANT script :

 

[...]<!-- Package -->     <target name="package" description="Create the extension package">          <exec executable="${flex.sdk}/bin/adt" failonerror="true" dir="../temp">               <env key="AIR_SDK_HOME" value="${flex.sdk}"/>               <arg value="-package"/>               <arg value="-target"/>               <arg value="ane"/>               <arg value="${name}.ane"/>               <arg value="../build/extension.xml"/>               <arg line="-swc swc/${name}.swc"/>               <arg line="-platform iPhone-ARM -platformoptions ../build/platform.xml -C ios/ ."/>               <arg line="-platform iPhone-x86 -platformoptions ../build/platform.xml -C iosSimulator/ ."/>               <arg line="-platform default -C default/ ."/>          </exec>        <move file="../temp/${name}.ane" todir="../bin"/>        <delete dir="../temp"/>    </target>
[...]

 

and the content of the platform.xml :

 

<?xml version="1.0" encoding="utf-8" ?><platform xmlns="http://ns.adobe.com/air/extension/13.0">     <sdkVersion>7.1</sdkVersion>     <linkerOptions>          <option>-ios_version_min 5.1.1</option>          <option>-framework Accelerate</option>          <option>-weak_framework AdSupport</option>          <option>-framework CoreGraphics</option>          <option>-framework Foundation</option>          <option>-framework QuartzCore</option>          <option>-framework Security</option>          <option>-weak_framework StoreKit</option>          <option>-framework SystemConfiguration</option>          <option>-framework UIKit</option>     </linkerOptions></platform>

 

The script runs fine and generates a valide ANE but when I use is in my project I encounter the error above.

 

Here is my environment:

- Flash Builder 4.7

- AIR SDK 13.0.0.76

- Xcode 5.1 with iOS 7.1

 

Does anyone have an idea on the source of my problem?

 

Thank you.


Viewing all articles
Browse latest Browse all 24121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>