valid AS3 will crash iPhone app on startup
Steps to reproduce:
1. Add this code to a Flex Mobile Project:
public class Foo extends EventDispatcher {
public override function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false):void {
var thisFunc:Function= arguments.callee;
super.addEventListener(type, listener, useCapture, priority, useWeakReference);
}
}
2. Refer to the class Foo somewhere in the application, for example the creation complete handler of MainHomeView.mxml:
protected function view1_creationCompleteHandler(event:FlexEvent):void {
var foo:Foo;
}
3. Debug this on an iOS device using the 'Standard' packaging method. Also, you could export a Release build for iOS.
When the iOS app launches, it will crash before running any code written by the programmer-- just the *presence* of this code in the app causes it to crash (!). I'm attaching a crash log.
I've filed a bug for this here: https://bugs.adobe.com/jira/browse/FB-32130
