title: iPhone private API compiling
body: <p>I'm searching through the whole internet since a few hours now, and I just can't find the informations I'm looking for.
  I would like to mess around with the private apis, see whats possible, etc., but I can't even compile something.</p>
  
  <p>So I've got a few pretty basic questions:</p>
  
  <ul>
  <li>Do I have to dump the headers? Because I downloaded a sample, where the API is loaded with </li>
  </ul>
  
  
  
  <pre class="lang-objc prettyprint-override"><code>char *framework = "/System/Library/PrivateFrameworks/...";
  dlopen(...);
  </code></pre>
  
  <p>I would like to use the objc-syntax (if possible) rather than using C (as mentioned above), if there are any opportunities.</p>
  
  <ul>
  <li>How do I make Xcode compile, if I import the private APIs? Do I have to add other link flags? (because I read about two different opinions)
  I added a private framework and created a new Folder "Headers" and put all the headers files in there, so the framework shows up correctly in Xcode. Do I have to import the whole .framework, or only the headers from the framework I would like to use? After I imported the framework, I get 20+ errors, unknown type names, and many more.</li>
  </ul>
  
  <p>And, finally, I've read about entitlements (which seem to be new in iOS 7). How do I use these entitlements and when do I use them?</p>
  
  <p>Could someone please just type a few lines as an example?</p>