Prevent Photos app on OSX from launching when plugging in device
With the iPhone plugged in, open the Image Capture app on your Mac. In the Image Capture window, left lower corner, choose which app should automatically open when you plug in your phone, chose "no application"