My 2014 MacBook Air will not consistently charge my iPhone nor my iPad. When connected via the USB the charge/not charging battery sign flashes and/or the charge connection sound chimes.
I ran a self diagnostic on the laptop as suggested by online help with Apple. The result indicated that there could be a problem with the battery. Later I took the laptop to the Apple Store to have a diagnostic run as well. Thy indicated that the laptop battery was failing and that it would have to be replaced. Because the battery was failing, it could not produce the flow sufficient to consistently charge the phone or pad.
I have not replaced the battery yet because of time constrains. Apple wants to keep the laptop for a couple of weeks, however due to a work schedule I can not leave with them as I need my computer for work.
I hope someone with a smilier problem finds this helpful in the sense that a diagnostic may be the avenue you'll need to pinpoint the problem!