You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

💡 Did you know?

⏺ If you can't accept iCloud Terms and Conditions... Learn more >

⏺ If you don't see your iCloud notes in the Notes app... Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iPhone connects and disconnects from Mac

Hello,


When I plug in my iPhone to my Macbook pro, it repetitively connects and disconnects. Therefore I cannot charge my phone through my computer anymore.


I own this iPhone since decembre 2018, and this issue only appeared this week. However when I plug in my iPhone to a wall outlet, it charges perfectly. I also noticed that there is a lag time before my phone starts charging when connected to my Macbook (before disconnecting right away, and then reconnecting etc).

I tried to connect my iPhone to both USB ports of my Macbook, with many different Apple lightning cables and also my Anker cable (MFI certified), but the issue substains. I plugged in my mother's iPhone 6 to my Macbook and it charged perfectly. I plugged in my iPhone to my brother's former Macbook pro (15" from 2008) and my iPhone could charge normally.


Here everything I tried to resolve this issue (which failed by the way) :

- I shut down and turned on my computer and my phone.

- I reseted location and privacy of my phone (Devices rapidly disconnect/reconnect - Macbook Air Mid 2013).

- I also restored my phone.


Could anyone tell me a solution?


I specify that I have a 256Go iPhone X under IOS 11.2.5 and a 13" retina Macbook pro (mid 2014) under High Sierra 10.13.3.


[Re-Titled by Moderator]

iPhone X, iOS 11.2.5

Posted on Feb 10, 2018 1:34 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 1, 2019 5:24 AM

I had the same problem. My computer was a late 2014 iMac 27" 5K. Problem started with my iPhone 6 and persisted after I upgraded to iPhone Xs. Things I had tried:

  • Restarting many times both iPhone and iMac.
  • Changing the USB inlet.
  • Using a different USB cable. The problem would stop for a very short time and then return.
  • Connecting to my MacBook Pro with the same USB cable. It worked fine. Problem was with iMac.
  • Force quitting "usbd" from Activity Monitor.
  • Settings>Network> iphone USB> then uncheck the box that says "Disable unless needed"


None of the above worked. Until I contacted Apple Support today. They prompted me to enter this Terminal code:


sudo killall -STOP -c usbd


Problem stopped immediately. I restarted the iMac and things still work fine. Haven't seen how it turns out long-term, though. Give it a try.

Similar questions

276 replies

Feb 16, 2020 1:39 PM in response to RafalPender

If you want a ton of detail, read here: https://apple.stackexchange.com/questions/382002/iphone-mac-connection-issue-and-what-does-the-usbd-process-do But the short answer is that executing "sudo killall -STOP -c usbd" from the terminal app will not require continual force quitting of usbd process. It should last until you reboot your Mac. So far, it's worked for me, but the pitfall is charging occurs at a much slower rate. Good luck!

Feb 16, 2020 3:08 PM in response to MélodyH

Connect your iPhone


Run this command in Terminal and it will fix all your problems - sudo killall -STOP -c usbd


Also go to System Preferences > Network > You will see iPhone USB 1, 2 etc. - Select each one and remove them all by pressing the ( - symbol) in the bottom left corner.


Disconnect and reconnect and this should fix all your issues.

Feb 24, 2020 3:58 AM in response to MélodyH

I have had that problem for quite a while. I change some settings following different advices given here and there, which had annoying consequences like Google Maps loosing the navigation option, I used a new USB cable, then finally, I used my brain: if your laptop is fully charged 100% or connected to the charger, the phone will stay connected, if the laptop charge is not enough, the laptop will disconnect your iPhone that will reconnect and get disconnected again and so on, with that annoying sound at each step. So the conclusion is: don't try to charge or connect your phone to your laptop if the battery is not fully charged.

Mar 18, 2020 11:40 AM in response to ajainEarthNetworks

Tried connecting a new iPhone 11 to a Macbook Pro (2015) and had this very frustrating problem. Using a new cable. Tried everything, but this actually worked. Not sure if I will have to do this again when I reboot, but I guess we will see.


As a relatively recent Windows transplant, while this solution works, it does have a very clunky windows-like feel to it. Honestly I thought my days of task killing were over now that I am swimming in the iOS pool. :-(

Apr 3, 2020 11:40 PM in response to MélodyH

Dear all, I have had this problem 3 months ago, then I thought I had been clearing it by only using my 2017 MacBook Pro instead of my 2016 MacBook Air, the phenomenon happening on the MacBook Air only. Yesterday I used my MacBook Air again as Nd the bloody on/off triggered again. I collected all the iPhone USB cables in the house and tried them one by one. In my case, it is defining USB cable that’s wrong. Only the most recent ones work properly. I have cut and binned all the defective ones, 6 out of 10 . Hope this helps

Apr 28, 2020 2:07 PM in response to MélodyH

Fixes devices connecting and disconnecting rapidly with iTunes

Made the script , just save to desktop

Open Automator ---- Run AppleScript --- Add Script --- Save as application in Desktop

Enter System Preferences ---- Go to User & Groups --- Click on your User ---- Login Items ---- Add The Usb Fix . All Done

------------------------------------------------------------

tell application "Terminal"

do script "sudo killall -STOP -c usbd"

delay 2

do script "Your Mac Password" in front window

delay 1

do script "killall Terminal" in front window

end tell

------------------------------------------------------------

Tutorial:https://www.youtube.com/watch?v=IF3eVmLdqpI

Hope you enjoy it :)

Jun 20, 2020 8:03 PM in response to Arashk.B

It took a bit more than 51%, but this worked for me. I think I charged it up to 70% on my charger before moving it to my iMac, and that ended the eternal connect/disconnect it had been doing previously when I was plugging it into the iMac. I've seen similar behaviour on my car charger so now my suspicion is that the car charger just doesn't have enough juice for a heavily discharged phone. Interesting. Thanks very much for the helpful comment. 🙂

Jun 25, 2020 12:50 PM in response to MélodyH

I have the same issue with an iphone 7 connecting to my MBA. I found that putting the phone in "Low Power Mode" avoids the USB-looping problem, and once the phone is fully charged, it automatically takes itself back out of Low Power mode and is fine. For ease & convenience, I put the "low power mode" icon on my Control Center (the thing where you can turn on/off the "flashlight" and Airplane mode), by going to Settings --> Control Center --> Customize Controls.


This is a workaround, not a long-term fix. But it's a fast & easy one. I suspect the guy mentioning higher current draw during charging a <50%-charge battery is on the right track though. Care to chime in, Apple Support??

Jul 22, 2020 7:07 AM in response to rpmartins

This was fantastic advice - thank you. I'm a techno-dummy who gets visibly shaken when I'm in the Terminal. Me and code do not jive. This however was easy as pie and worked like a charm. The constant connect/disconnect with my iPhone while it was plugged into the laptop, (coupled with the annoying sound) was making me nuts, (well, more nuts than normal). Thanks again!

Aug 8, 2020 2:29 AM in response to MélodyH

Buy something other than a Mac. At least that's what I'm planning to do. Something as simple as connecting your phone to your computer, should never be such a big problem. I've tried everything and nothing works. usbd is impossible to kill. killall -stop... in Terminal, none of that works. I'm done with Apple. Overpriced and now as problematic as windows. Game over for me.

Oct 22, 2020 11:27 AM in response to MélodyH

This issue began for me when I plugged in the iPhone and was given the message in iTunes that the laptop needs to update software to be able to connect to the iPhone. During the update I accidentally unplugged my iPhone from my MacBook Pro while the laptop was updating software. I have tried everything listed here in this thread except for the iPhone USB setting because I could not see it in mt network settings. Laptop is a 2015 MacBook Pro running Catalina and iPhone is an 8 Plus running IOS 14.1. I spoke to Apple support and they recommended I re-install Catalina in recovery mode. Before I do that I was hoping there may be another suggestion from the community.

Nov 2, 2020 11:49 AM in response to MélodyH

I was having this issue, very frustrating. I have a 5-year old iMax and my iPhone would not stay connected for more than a couple of seconds. After trying everything listed in this thread with no success, I found that if I plug it into the USB on my wired keyboard all problems went away. I am just backing it up so I can get my new iPhone 12 on like, hopefully this issue will go away.

iPhone connects and disconnects from Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.