Metal building condensation

We had the same problem after we built out metal pole building/garage. It would be raining inside from the moisture. We cut foam insulation between the studs( including the roof) problem solved. 25 years later...still holding up great.