How can I automatically generate UML diagrams from Objective-C code?

Viewed 15634

Is there a way to create automatically the UML diagram from the code, in objective-C ?

Cheers, Niels

3 Answers

Same problem, still looking for answer:

  • Checked Doxygen, but I could generate only documentation and graph fragments. Maybe should spend some quality time with documentation
  • Checked OmniGraffle, output was kind of ok. Run out of free demo period and not going buy full version ONLY for a few occasional graphs. Might be ok, if you have some other uses for it. Not sure, if OmniGraffle "officially" supports that any more

Finally found "objc_dep.py" from GitHub. It's free, fast, simple and works as-is. It generates a kind of "dependency graph" based on imports, which really isn't UML or class diagrams, but was surprisingly close enough.

So that's what I'm using now, but non-actively looking for something "more". Blogged about the objc_dep tool in "Dependency Graph Tool for iOS Projects", might be interesting if you want more info with sample graphs.

...but looking for something to generate real class diagrams.

Related