Using a can of compressed air is the safest way to clean your iPhone's port. Hold the can upright but not too close to the port, and apply a few short blasts of air. You should see small particles falling out of the phone charging port. This is also an option if you need to clean your AirPods and AirPods case.