wakatime / xcode-wakatime

Xcode plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/xcode
BSD 3-Clause "New" or "Revised" License
393 stars 28 forks source link

'Unknown Project' #15

Closed leo150 closed 9 years ago

leo150 commented 9 years ago

Hi, thank you for nice plugin I use CocoaPods so I need to work inside workspace including two projects - mine and Pods. Problem is that dashboard shows project opened through workspace as 'Unknown Project'. How can I fix that?

screen shot 2015-12-06 at 20 48 43

alanhamlett commented 9 years ago

There are many ways to set the project going forward (~/.wakatime.cfg file, .wakatime-project file, using revision control like git). The easiest way is create a file named .wakatime-project in your project's top-level folder with the first line containing the name of the project.

To rewrite your coding activity after creating the .wakatime-project file, add a custom rule saying "If file contains X, set project to Y".

leo150 commented 9 years ago

@alanhamlett thanks, it works!