iOS device battery life when developing
I don't think it will hurt your iPhone. The charger is smart enough to stop charging when necessary. It is the number of charge/use cycles that degrade battery life and if you are attached most of the time its doing neither.

I have had mine attached to a cable most of the time for over a year and not seen any degradation.