Skip to main content
Participant
February 8, 2012
Question

Native extension, compilation error in flex

  • February 8, 2012
  • 1 reply
  • 1298 views

Hello,

I use flex 4.6.
I try to include native extension in my AIR/IOS project, but when I compile, i always have a runtime error whatever the native extension i try.

Exemple :

VerifyError: Error #1014: Class com.custardbelly.air.extensions.battery.ios::Battery could not be found.


I link in my project properties the ane file and the associate swc file.
in the app xml file I have the right extensions tag :

<extensions>

    <extensionID>com.custardbelly.ibattery</extensionID>

</extensions>

What do I wrong ?

Thanks.

PS : sorry for my english...

This topic has been closed for replies.

1 reply

Inspiring
February 8, 2012

Make sure the ANE file has no error if you created it.

Add the ANE file into your project Build Path, then check it into Build Packaging->Apple IOS->Native Extensions.

BTW, I built my native extension for displaying PPT file in UIWebView from Objective-C. Then I tried it on my PC to get the IPA file, it did not work out, but it works on my mac

I don't what exactly the reason is. You can try a mac if you are using windows.

caraxAuthor
Participant
February 10, 2012

Thanks for the answer,

I'm on Mac and the ANE file is checked into Build Packaging->Apple IOS-> Native Extensions.
I try with a few ANE files find on the web, and I always have the same result. Perhaps they don't work. Can someone give me a link where I can find tested ANE File ? 

Inspiring
February 10, 2012

There many ANE files working out there online. I have tested some of them, like NativeAlert, Geo, MailComposer, etc.  Let me test the battery status for you to see if it works on my machine.