This is the tool that allows to track events that are happening in Xcode This tool simply runs tracking scripts based on Xcode behaviors. It's independent on the Xcode version (as soon as you have Xcode version higher than 4 :) It will survive Xcode reinstallations, so it works on 'install and forget basis'
The result of this tool will be one simple csv file looking like this
#Email, ProjectName, Workspace, TimeStart, Event, TimeSpent
[email protected],No project,Test.xcworkspace,1518017360394,Build Succeeded,145025298
There'are two installation steps:
- Place scripts to
~/.timecheck
directory - Setup Xcode behaviours to run those scripts on every run
Simply run
install.sh
Or use this for install scripts and remove dir with repo:
git clone https://github.com/gregoryvit/xcode-time-tracker && ./xcode-time-tracker/install.sh && rm -rf xcode-time-tracker
This will copy project_start.py
and project_end.py
to the ~/.timecheck
directory
- Edit Xcode Behaviors
- Set project_start.py script as custom script for start behaviors
- Set project_end.py script as custom script for end behaviors
There are no more steps. Done.
Build your precious project and see that there's new file appeared in ~/.timecheck
directory
It should contain line that should look like this
No project,HeyYouAreAwesome.xcworkspace,1597876725,1597876729,Build Succeeded,4
The next step is to visualize this information.
I used R language for that. But there's more coming
This how it can look like if you'll be able to setup R correcly :)