7

I am developing iOS apps and I hate, that always when I connect my iPhone to my Mac to install and test an app, the iPhone gets charged. Is there any possibility to connect my iPhone to my Mac without charging the phone?

My Environment:
- iPhone 4S (No Jailbreak)
- MacBook Air3,2 (Late 2010)

3 Answers 3

3

After some Googling around, I don't believe this is possible.

Though you can disable USB ports by unloading kexts, this would disable USB port functionality altogether: it would neither supply power nor read any USB connected input device (it may still supply power, but definitely would not recognize any input).

An alternative option would be to purchase an AC powered USB hub (for example) to reduce the power being drawn from your built in USB port when a device is connected to the hub (and hub is connected directly to AC + your machine). That way, though 500 mAh would still be allocated to the port, the iPhone would be drawing power from the AC connection. Thus, you could still connect the phone to your machine and have it recognizable via the hub without drawing power exclusively from the machine's USB port.

Related:

Disable Specific USB Ports / Restrict Data Transfer from USB Ports

1

iPhone WiFi Sync is exactly what you are looking for. I've been using it with my iPhone 4 just fine. It is noticeably slower though for large transfers.

Here is Apple's KB article

http://support.apple.com/kb/ht1386

1
  • 4
    iTunes WiFi Sync is NOT what I am looking for, I want to install and debug applications on my iPhone (via Xcode/AppCode). To do this, Xcode NEEDS the iOS device connected via a cable.
    – lukas
    Jun 21, 2014 at 6:18
0

ref: How do you perform wireless debugging in Xcode 9 with iOS 11, Apple TV 4K, etc?
ref: Sync content between your Mac and iPhone or iPad over Wi-Fi
ref: Not able to "connect via network" for debugging (@eskimo)

Yeah, that can be a bit persnickety. Here’s what I did to get it to show up:

  1. I turned off Wi-Fi on my device, just to be sure it wasn’t being seen on the network.
  2. I connected it via USB.
  3. In Xcode’s Devices window, I selected the device on the left.
  4. I enabled Connect via Network on the right.
  5. I disconnected the USB; the device moved to the Disconnected section.
  6. I control clicked on the device and Connect via IP Address shows up in the menu.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .