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

Use custom path to DerivedData #11

Closed vixentael closed 9 years ago

vixentael commented 9 years ago

If DerivedData is relative to project, visualizer tool doesn't find it. relative-path

I usually have error like:

➜ ./generate-objc-dependencies-to-json.rb -d -s "" > origin.js ;
find: ~/Library/Caches/appCode*/DerivedData: No such file or directory
There were 0 directories found
Cannot find projects that starts with ''

In this case I need to pass as parameter full path for object files, like this:

./generate-objc-dependencies-to-json.rb -d -p "~/projects/<FOLDER_NAME>/ios-project/DerivedData/<PROJECT_NAME>/Build/Intermediates/<PROJECT_NAME>.build/Debug-iphoneos/<PROJECT_NAME>.build/Objects-normal" > origin.js

I think that it's quite inconvenient. Let's add param to pass path to DerivedData folder like this:

./generate-objc-dependencies-to-json.rb -d -D "~/projects/<FOLDER_NAME>/ios-project/DerivedData" > origin.js

where D stands for DerivedData