This question already has an answer here:
How do I disable automatic iTunes launch when iPhone is plugged in via USB (for charging)? In fact, I would like to disable automatic launch of anything when an iPhone is plugged in (including photo sync).
This question already has an answer here:
How do I disable automatic iTunes launch when iPhone is plugged in via USB (for charging)? In fact, I would like to disable automatic launch of anything when an iPhone is plugged in (including photo sync).
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Open iTunes, select your device, go to the Summary tab and unselect either Open iTunes when this iPhone is connected, or Automatically sync when this iPhone is connected depending on your version of iTunes.
Also, you might wish to disable iTunes Helper. Go to System Preferences → Users & Groups → Login Items and delete iTunes Helper from the list.
Open iPhoto, open Preferences (iPhoto → Preferences or ⌘,). Select General tab and set Connecting camera opens to No application.
Let Photos open when you connect your device, select the "Import" tab and untick the box for "Open Photos for this device"
Import tab and untick the box for Open Photos for this device
– bskool
Oct 20 '15 at 10:07