Exception Support in iOS Native Extensions

Up to AIR 3.3, it was not possible to handle exceptions inside the Cocoatouch Static Library in an ANE. AIR 3.4 onwards, it is possible to use the Objective C @try-@catch-@finally syntax inside one’s native library. The native developer can now also use C++ try-catch blocks successfully. The only thing to keep in mind while using exceptions in native code on iOS is that the exceptions should be handled inside the ANE itself. The AIR runtime will not catch the exceptions thrown by extensions.

You can download the latest AIR SDK with support for handling exceptions in a Native Extension  from  http://labs.adobe.com/technologies/flashplatformruntimes/

4 Responses to Exception Support in iOS Native Extensions

  1. Barry says:

    The release notes for AIR 3.4 state that it now builds with iOS SDK 5.1 (without –platformsdk). I was under the impression that this was already the case in 3.3. Can you clarify?

  2. Pingback: Exception Support in iOS Native Extensions | Bookmarks.Funmax.org

  3. Pete Couture says:

    Is there any way to get on the Air beta team? I just spent a good two weeks figuring out ANE how to build them and working on a Push Extension. I’m happy I spent the time learning but I would have saved a week if I knew it was broken in 3.3 because you were integrating it into 3.4.