How can I generate UML diagrams from Xcode4

I watched a video from xcode 3 that displays a Design button that displays a UML diagram, but I cannot find how to do it with xcode 4.

+43
objective-c xcode4 ios4 uml xcode3to4
May 21 '11 at 2:51
source share
6 answers

Try Omnigraffle . It has templates for UML diagrams.

If you drop the Xcode4 project file onto the dock icon, it will generate a UML diagram.

What he does not do is generate code from diagrams.

+73
May 21 '11 at 11:30 a.m.
source share

Find "Xcode Design Help" in the help. This will show you a tutorial to help you create a chart.

EDIT β†’>

It seems that the instructions are valid for Xcode 3 and that the UML modeling has been removed from Xcode 4. The only simulation I could find in Xcode 4 is Data Modeling: File> New> New File ... and then look under " Basic data".

Class Modeling Alternatives for Objective-C

You can also check out Doxygen .

+3
May 21 '11 at 2:58
source share

Visual Paradigm can generate uml from objective c and vice versa (I haven’t tried it yet, I can’t say how well it does this job).

+1
May 25 '11 at 20:48
source share

You can use yEd ... not the best solution and not generate graphs like OmniGraffle, but at least it can export to SVG and use GraphML files to store data. (and this is the board)

http://www.yworks.com/en/products_yed_helpresources.html

+1
Sep 23 '13 at 6:34 on
source share

It may help you, but I have not personally tested it,

https://developer.apple.com/legacy/library/documentation/DeveloperTools/Conceptual/XCodeDesignTools/XCodeDesignTools.pdf

The Xcode class modeling tool will help you learn and understand the classes in your project, whether they are written in Objective-C, C ++, Java, or as a mixture of these languages. It allows you to see class relationships (subclass and superclass relationships, including support for multiple inheritance in C ++), protocols (or Java interfaces) and categories. In the form of a diagram, color and text coding help quickly distinguish between classes, categories and protocols, as well as between project code and structure. The corresponding indication (public, private, protected) of functions and member variables is shown. (If you are not familiar with any of these conditions, you should consult with appropriate programming texts.)

enter image description here enter image description here

0
Apr 17 '16 at 17:41
source share

I was looking for a quick solution to the same problem as the OP here, but the solution that helped me the most was to create a diagram from my existing Xcode project, which will show the operations in each class that I selected, is to use my still existing Xcode 3 installation .

Note: 1. This is not real UML, but it is still good to get / leave a review. 2. You can export the chart to PDF using the print-to-PDF function available in most Mac OS X applications. 3. If you upgraded from XCode 3.2.6 to 4.x, upgraded from Snow Leopard to Lion, like me, you find your Xcode 3 installation in / Developer-3.2.6 / Applications / Xcode.app.

-one
Nov 03 2018-11-11T00:
source share



All Articles