22

i know how to generate class diagram in Xcode for iPhone app.

but i am searching for alternate way to represent it, because my app is very much big and it will difficult to put diagram and explanation in my thesis report.

any idea how to represent all classes or app in short manner so i can put into my thesis report.

thank you very much

Pooja
  • 2,162
  • 5
  • 33
  • 64
  • "Short manner" can be very subjective. Also are you looking for a free tool/software? – Black Frog May 02 '11 at 14:15
  • like if u right click in .net and select View Class diagram its so simple to see and read and easily understandable but this is not in the case with Xcode....it create so huge class diagram which is not possible to documentation – Pooja May 02 '11 at 15:01
  • not really tool or software i just need advice how other people do if they want to document their apps in class diagram representation – Pooja May 02 '11 at 15:02
  • 1
    It all depends on the tool and medium you want to display the information. On the web I can generate a very large paper size. But for psychical pager you have to break it down to concrete area. For example one page would just deal with storing user settings. And for your thesis, you will have to manually generate them yourself. – Black Frog May 02 '11 at 15:11
  • i am also thing to create it manually..thanks for advice – Pooja May 02 '11 at 16:09

6 Answers6

31

Just download OmniGraffle and then go to File->Open->Select your XcodeProject file and that's it you'll have a class diagram.

Hemang
  • 26,840
  • 19
  • 119
  • 186
Anand
  • 1,129
  • 7
  • 29
  • 1
    Seems to be unable to handle larger projects. "Not Responding" every time. – Oh Danny Boy May 02 '13 at 18:28
  • 2
    It crashed for me as well if I opened the XCode project directly from OmniGraffle. My project is quite big, so I guess that is the problem. But if I used https://github.com/nst/objc_dep to generate the .dot file and then open it with OmniGraffle it worked, but not for CircleGraph type. – Lily Jun 17 '13 at 13:58
  • 1
    Will not work for swift, me too looking for alternative solution., if any one find please let us all know. Thanks – Anand Oct 27 '15 at 07:51
  • 2
    Yes, It won't work for Swift, I am also searching for similar tool, will inform if found some reliable tool. – Anand Dec 30 '15 at 07:58
  • This link is invalid but I searched OmniGraffle 7 in mac's app store and I got that. – Prasanna Jan 02 '18 at 11:14
3

You can use Omnigraffle to generate UML diagrams directly from Xcode.

Have a look at this SO answer.

Community
  • 1
  • 1
Abizern
  • 146,289
  • 39
  • 203
  • 257
1

Select the "FirstDemo.xcdatamodeld".Goto the "File" select the "print" option save as pdf formate in "ERD diagram".

Any screen issue faced goto the "File" select the "Page Setup"manage the custom sizes.

0

A Ruby script created by 'yoshimkd' that scans all swift code from the specified folders and files and automatically generates an entity diagram (similar to a class diagram) which can be viewed in a browser.

Usage: https://martinmitrevski.com/2016/10/12/swift-class-diagrams-and-more/

Carlos Chaguendo
  • 2,895
  • 19
  • 24
  • A link to a potential solution is always welcome, but please [add context around the link](http://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers/8259#8259) so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline. Take into account that being barely more than a link to an external site is a possible reason as to [Why and how are some answers deleted?](http://stackoverflow.com/help/deleted-answers). – FelixSFD Nov 25 '16 at 20:24
0

OmniGraffle only works with projects that have an Objective-C hierarchy! Do not waste time trying this for Swift!

Edit: I ended up using LucidChart instead. Their trial version was good enough for writing my class diagram https://www.lucidchart.com/pages/

my3vshenoy
  • 51
  • 1
  • 4
  • This is already mentioned in the comments to the highest-voted answer. However, if you are able to add additional details, this answer could meaningfully stand on its own. – ryanwebjackson Feb 05 '22 at 22:01
-1

You can use StarUML.

Praveen S
  • 10,355
  • 2
  • 43
  • 69
  • 3
    From the website: "StarUML is an open source project to develop fast, flexible, extensible, featureful, and freely-available UML/MDA platform _running on Win32 platform_" (emphasis mine). How would this work for a project running on a Mac? – Stephen Darlington Mar 15 '12 at 09:42