XCode app testing on iPhone fills in iPhone storage

I run some tests for an iOS app, connecting the iPhone to my mac where the code resides.

I notice that it fills the iPhone from system data, until the iPhone is full.

I tried everything to remove the system data (I assume some logs from the XCode testing): reset network, restart the iPhone, remove the tested app, etc. Nothing works. I am stuck with having to erase all data on the iPhone and reinstall from scratch, which is very tedious.

Any suggestions ? Thanks!

XCode app testing on iPhone fills in iPhone storage
 
 
Q