DOXYGEN WITH XCODE

 

How to set up Doxygen for use in your Xcode Project

There is a great tutorial on the apple developer site with detail surrounding this process: http://developer.apple.com/tools/creatingdocsetswithdoxygen.html. However, I will try to add my own two cents to make the process go more smoothly and quicker for you!

Steps
1. Download the latest version of Doxygen here: http://www.stack.nl/~dimitri/doxygen/download.html#latestsrc

2. Drag and Drop Doxygen.app to your Applications folder to install Doxygen.

3. To create better looking documentation, download and install GraphViz here: http://www.ryandesign.com/graphviz/.

4. Open and configure Doxygen.

5. Follow the remaining instructions from the apple developer website: http://developer.apple.com/tools/creatingdocsetswithdoxygen.html. They are very straightforward, however, I ran into two issues:

  1. The only issue I ran into was when I first tried to view my docset. In Xcode, if you navigate to Help...Documentation, you should see a 'root' in the top left (see figure 1). If you don't, you must open the docset in your doxygen project root/html folder. This docset has the name you specified in your configuration (com.RonJeremy.MyProject).
  2. After running my Xcode build, I noticed the documentation was not being updated. To fix this, I had to go into my Xcode project folder and locate the file named: doxygen.config. In this file, I found that GENERATE_DOCSET was set to NO. Simply changing this to YES resulted in the correct behavior.

Once the above steps are complete, you should see some auto-generated documentation:

 

Figure 1.

Xcode_Doxygen