Skip to main content
Participant
Feb 8, 2012 6:09 PM UTC
Question

Native extension, compilation error in flex

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Inspiring
Feb 8, 2012 7:38 PM UTC

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.

Translate
caraxAuthor
Participant
Feb 10, 2012 6:20 AM UTC

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 ? 

Translate
Inspiring
Feb 10, 2012 4:23 PM UTC

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.

Translate