How to stop Xcode downloading iOS support package of my iPhone? I want Xcode to stop downloading the files in ~/Library/Developer/Xcode/iOS DeviceSupport/12.4 where 12.4 is the iOS version of my iPhone. I have deleted them a couple of times now.

I also want to be able to connect my iPhone via USB to the Mac, without the fear of 2.5 GB bandwidth and storage cost. 

This setting in Xcode Preferences → Components doesn't list 12.4.



Xcode 10.3, iOS 12.4, macOS 10.14.

These posts talk about removal only: 


Can I delete unnecessary device simulators of Xcode?
Reduce size of the Xcode application
Looks like it wasn't downloading the thing, I checked in activity monitor after deleting the folder. It copies it from somewhere else, most likely 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/


Xcode simulator constantly download something


I removed all the listed items from Xcode's Window Menu → devices and simulators, which listed iOS 12 as their OS version.
Went to iOS settings → Developer and cleared paired devices.
Connected iPhone, unlocked it and chose "Don't Trust" upon prompt.


No more unnecessary folders.


Since  it causes problem for iTunes backup and network sharing, Go to /Users/ankitkumar/Library/Developer/Xcode/iOS DeviceSupport/12.4 right click on it > get info > Check locked.