title: MonoTouch "unrecognized selector sent to instance" not working on iOS5 (but does on iOS6)
body: <p>I am getting the following error linking against the Aviary SDK using MonoTouch.</p>
  
  <blockquote>
    <p>-[__NSArrayM objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x9b0f1d0</p>
  </blockquote>
  
  <p>The problem occurs when I try to push the linked controller.</p>
  
  <pre><code>PresentViewController(photoEditor, true, new NSAction(() =&gt; {}));
  </code></pre>
  
  <p>I have pushed/shared my project to <a href="https://github.com/theonlylawislove/MonoTouch.Aviary" rel="nofollow">https://github.com/theonlylawislove/MonoTouch.Aviary</a> where you can reproduce the problem.</p>
  
  <p>My Demo application works on iOS 6 simulator, but the mentioned error happens on iOS 5 simulator (and device).</p>
  
  <p>I took all the content (.a/bundles) straight from the latest Aviary SDK 3.0. The demo application provided by them (with same .a lib) works on iOS 5 so the problem must be with MonoTouch and the linking.</p>
  
  <p>Here is my linking flags.</p>
  
  <pre><code>[assembly: LinkWith ("libAviarySDK.a", 
                       LinkTarget = LinkTarget.ArmV7 | LinkTarget.Simulator, 
                       ForceLoad = true, 
                       IsCxx = true,
                       Frameworks="Accelerate CoreData CoreText Foundation MessageUI OpenGLES QuartzCore StoreKit SystemConfiguration UIKit", 
                       WeakFrameworks="AdSupport",
                       LinkerFlags="-ObjC -all_load -fobjc-arc -lz -lsqlite3.0")]
  </code></pre>
  
  <p>Any ideas? Thanks in advance! I am hoping to get the solution working to share it with the community since Aviary doesn't provide MonoTouch bindings.</p>