How can I generate UML diagrams from Xcode4

2019-01-12 19:03发布

I watched a video with xcode 3, that shows a button "Design" that displays a UML diagram, but I can't find how to do it with xcode 4.

6条回答
可以哭但决不认输i
2楼-- · 2019-01-12 19:45

You can use yEd ... not the best solution and does not generate graphs as OmniGraffle can do but at least it can export in SVG and use GraphML files to store the data. (and it is fee)

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

查看更多
成全新的幸福
3楼-- · 2019-01-12 19:46

This may help you but I didn't personally tested,

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

The Xcode class modeling tool helps you to explore and understand the classes in your project, whether they’re written in Objective-C, C++, Java, or a mixture of those languages. It allows you to see class relationships (subclass and superclass relationships—including support for multiple inheritance in C++), protocols (or interfaces in Java), and categories. In the diagram view, color and text coding help you to quickly distinguish between classes, categories, and protocols, and between project and framework code. The visibility (public, private, protected) of member functions and variables is shown appropriately. (If you are not familiar with any of these terms, you should consult suitable programming texts.)

enter image description here enter image description here

查看更多
\"骚年 ilove
4楼-- · 2019-01-12 19:51

I was looking for a quick fix to the same problem as the OP here, but the solution that helped me most - generate a diagram from my existing XCode project that will show the operations in every class I select - was to use my still existing installation of XCode 3.

Remarks: 1. It's not real UML but it's still good to get/keep an overview. 2. You can export a diagram to PDF using the print-to-PDF feature available in most Mac OS X applications. 3. If you upgraded from XCode 3.2.6 to 4.x by upgrading Snow Leopard to Lion like me, you'll find your XCode 3 installation at /Developer-3.2.6/Applications/Xcode.app.

查看更多
我只想做你的唯一
5楼-- · 2019-01-12 20:01

Try Omnigraffle This has templates for UML diagrams.

If you drop an Xcode4 project file onto its dock icon, it will generate a UML diagram from that.

What it doesn't do is generate code from diagrams.

查看更多
相关推荐>>
6楼-- · 2019-01-12 20:04

Search for "Xcode Design Tools" in Help. That will show you a tutorial that will walk you through creating a diagram.

EDIT >>>

It looks like the instructions are actually for XCode 3 and that UML Modeling was removed from XCode 4. The only modeling I could find in XCode 4 is Data Modeling: File>New>New File... and then look under 'Core Data'.

Class Modeling alternatives for Objective C

You might also want to check out Doxygen.

查看更多
倾城 Initia
7楼-- · 2019-01-12 20:04

Visual Paradigm can generate uml from objective c and back (haven't tried it yet, can't tell how well it does the job).

查看更多
登录 后发表回答