title: Symbol not found error from static library on iOS 4.3.5
body: <p>I'm seeing this error on an <code>iOS 4.3.5</code> handset where my app has been installed via an ad hoc deployment (downloaded over HTTP):</p>
  
  <p>Dyld Error Message:</p>
  
  <pre><code>  Symbol not found: _OBJC_CLASS_$_NSJSONSerialization
    Expected in: /System/Library/Frameworks/Foundation.framework/Foundation
  </code></pre>
  
  <p>My code in the app doesn't call <code>iOS 5</code> libraries unless a class has been shown to exist (i.e. <code>if(NSClassFromString(@"NSJSONSerialization")!=nil</code>) so the issue isn't that calls are being made to <code>iOS 5</code> libraries on an iOS 4 device.</p>
  
  <p>The app itself contains a static library which is my own code, and is where the <code>NSJSONSerialization</code> references exist. </p>
  
  <p>The app works perfectly on the <code>iOS 4.3</code> device if run directly from xcode (i.e. the iPhone attached to the development machine via USB cable). However, when run on the same device via the adhoc deployment, I see the crash.</p>
  
  <p>The adhoc archive is built via <code>Product-&gt;Archive</code> in <code>xcode 4</code>, and then I use the 'Distribute' button to create the Ad-Hoc deployment .ipa file.</p>
  
  <p>The app crashes almost instantly, leaving me to think that perhaps none of my code is being called at all, and that it's my Archive build settings that may be incorrect here?</p>
  
  <p>Many thanks in advance for any time spent helping!</p>