To Transfer music from an iPhone to an iTunes Library on a Mac, the best tool you should try is Wondershare TunesGo (Mac). It helps you achieve your goal in a second.
http://www.wondershare.com/mac-ios-ma...
http://www.wondershare.com/mobile-pho...