Prevent the Photos app in OS X from launching when plugging in an iOS device.
This sets an OS X flag so not activate ImageCapture,Photos or iPhoto when an iOS device is detected.
1. Launch Terminal from the /Applications/Utilities.
2. Enter the following command:
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES