title: Dynamic and static linking in iOS app?
body: <p>i'm trying to use static libs (.a) in my project. I've added "lib*.a" in "frameworks" and added liker flags "-ObjC".  lib*.a are compiled for i386 to be run in iOS simulator. Though the app was build without error it can't be launched in iOS simulator because of error:</p>
  
  <pre><code>dyld: Library not loaded: @rpath/libclang.dylib
    Referenced from: /Users/asmirnov/Library/Application Support/iPhone Simulator/7.1/Applications/D87A3FA9-7207-40B4-9EA0-5F06CEF6EF7B/StaticLibraryUsage.app/StaticLibraryUsage
    Reason: image not found
  </code></pre>
  
  <p>Why .dylib file is required even if i try to use static linking? Will using .dylib prevent the app from being distributed in AppStore?</p>