title: Can you use any library with the i386 architecture for a Cocoa/Mac OSX app?
body: <p>I have a library that used with iOS and it works with iPhone simulator and the device. When I run the file command on the library I get:</p>
  
  <pre><code>libXXX.a (for architecture armv6):  current ar archive random library
  libXXX.a (for architecture i386):   current ar archive random library
  </code></pre>
  
  <p>Now I want to use the same library for my OSX app. I set the architecture to 32-bit i386. However I get a few compilation errors:</p>
  
  <pre><code>Undefined symbols for architecture i386:
    ".objc_class_name_RTMPClient", referenced from:
        pointer-to-literal-objc-class-name in AppDelegate.o
  </code></pre>
  
  <p>I'm not sure if the error is because library was originally developed for iOS (the headers all had UIKit references I had to delete but seemed extraneous as there was no UI functionality .. it was just a library for opening/connecting to RTMP servers) -- or is it a linking error?
  In general can you use i386 architecture libraries developed for iPhone with Mac apps?</p>