I want to know if is there a way to prevent my iPhone battery from charging, when I connect it to my MacBook.
I want to try my applications when I'm working, but I'm afraid that I will damage the iPhone battery.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
You won't damage the battery. Your phone will be fine.
Perhaps try it plugged into a unpowered USB hub? I can't guarantee it will help, but it might work.