PaulTaykalo / objc-dependency-visualizer

Objective-C and Swift dependency visualizer. It's tool that helps to visualize current state of your project. It's really easy to see how tight your classes are coupled.
MIT License
1.84k stars 99 forks source link

Swift dependency visualizer not working #68

Open wds8807 opened 2 years ago

wds8807 commented 2 years ago

Xcode 13.1 Here is the result after running the line:

Screen Shot 2021-12-29 at 12 34 41 AM

First of all, it's a large project, it should be way more than 5 "directories". Second of all, index.html is empty. Please help.

kristofkalai commented 2 years ago

I think it needs an older version of Xcode (if I remember correctly one year ago I managed to work with this tool) - I installed Xcode 12.0 but then it said that on my OS it cannot run (macOS 12.2.1). I cannot downgrade, so if anyone want to try it out, I would be grateful 🙏

yermukhanbet commented 2 years ago

Are there any plans for updating the project for Xcode 13.1 version availability?

kristofkalai commented 2 years ago

I managed to use Xcode 12.0 on macOS 12.2.1 (with this solution), and it worked so indeed the problem was that the Xcode 13.x is too new. (Then I just have to figure it out how to upgrade (downgrade?) my huge project to that Xcode 12.0 can build it.)

kristofkalai commented 2 years ago

A (partial?) solution came sooner than I expected 🎉 with this type of command we can use a little workaround since it seems to me that this project is no more under maintenance.

I will have to check how correct the results are, but for me (and for my use case) it seems legit.

AppDevGuy commented 3 months ago

Using Xcode 15.4, I can can confirm for my own project this command worked:

./generate-objc-dependencies-to-json.rb -d -p "/Users/<My Name>/Library/Developer/Xcode/DerivedData/<Project Name>-cefzotbnlkwxumfksxtdoctopkzi/Build/Intermediates.noindex/<Project Name>.build/Debug-iphonesimulator/<Project Name>.build/Objects-normal/arm64" > origin.js ; open index.html 

Thanks @stateman92