title: How to properly link libc++ and libz in XCode?
body: <p>I'm pretty new to XCode and I tried to link libc++ and libz in XCode, under <code>Build Settings - Other Linker Flags</code>, but when I add a new line that says <code>libc++</code> or <code>libz</code>, I get an error stating <code>no such file or directory libc++</code></p>
  
  <p>I also tried by adding <code>libc++.dylib</code> and <code>/usr/lib/libc++.dylib</code>, but still the same error.</p>
  
  <p>Any help would be appreciated.</p>
  
  <blockquote>
    <p>[EDIT]</p>
  </blockquote>
  
  <p>I get this in the error message:</p>
  
  <pre><code>PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.
  platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/
  usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>/-weak_framework CoreFoundation -weak_framework UIKit
  /-weak_framework AVFoundation -weak_framework CoreMedia
  /-weak-lSystem -ObjC libc++.tbd -fobjc-arc -fobjc-link-runtime
  /-framework Fabric -framework AssetsLibrary -framework Crashlytics
  /-framework Security
  
  clang: error: no such file or directory: 'libc++.tbd'
  </code></pre>
  
  <p>Is that being linked correctly?</p>