generate Class diagram for iphone app
Asked Answered
M

6

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

Morose answered 2/5, 2011 at 13:0 Comment(5)
"Short manner" can be very subjective. Also are you looking for a free tool/software?Inductive
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 documentationMorose
not really tool or software i just need advice how other people do if they want to document their apps in class diagram representationMorose
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.Inductive
i am also thing to create it manually..thanks for adviceMorose
T
31

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

Topazolite answered 28/3, 2012 at 13:21 Comment(5)
Seems to be unable to handle larger projects. "Not Responding" every time.Conservative
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 github.com/nst/objc_dep to generate the .dot file and then open it with OmniGraffle it worked, but not for CircleGraph type.Durarte
Will not work for swift, me too looking for alternative solution., if any one find please let us all know. ThanksTopazolite
Yes, It won't work for Swift, I am also searching for similar tool, will inform if found some reliable tool.Topazolite
This link is invalid but I searched OmniGraffle 7 in mac's app store and I got that.Chieftain
E
3

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

Have a look at this SO answer.

Empressement answered 14/1, 2012 at 15:15 Comment(0)
O
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.

Oletaoletha answered 13/4, 2015 at 13:34 Comment(0)
P
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/

Pinchcock answered 25/11, 2016 at 20:24 Comment(1)
A link to a potential solution is always welcome, but please add context around the link 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?.Corby
N
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/

Nolan answered 1/2, 2022 at 3:38 Comment(1)
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.Longevous
R
-1

You can use StarUML.

Redistrict answered 2/5, 2011 at 13:31 Comment(1)
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?Rabaul

© 2022 - 2024 — McMap. All rights reserved.