Integrating Facebook Docset with Xcode

833 views Asked by At

So I downloaded the latest 3.1 Facebook iOS sdk and under the scripts I found a build_documentation.sh which I ran. It completed and generated a com.facebook.Facebook-SDK-3_0-for-iOS.docset file. I am trying to get it to integrate nicely with XCode. I know that apple docs can create documentation that shows up in the quick help panel. My own custom documentation works great.

Does anyone know what I have to do to get the same kind of documentation integration with Facebook?


EDIT: I tried adding the docset to the corresponding folder according to the instructions here and restarted Xcode but it didn't work

2

There are 2 answers

3
C Abernathy On BEST ANSWER

If you install the SDK from the package you don't have to generate the docset yourself.

0
Fab1n On

You can get the Facebook Documentation working with the following:

  • Build the Facebook Documentation with the provided shell scripts
  • Move the .docset to /Library/Developer/Shared/Documentation/DocSets

If it doesn't work, you may have to check, if you moved the docset to ~/Library/Developer/Shared/Documentation/DocSets. This is sometimes WRONG

Why does it work by installing the Facebook Framework directly from the .pkg?
It moves it to /Library/..., not to ~/Library/...