Ben A. answered 12/12/21
Experienced Geology Professional/Graduate Student
If we are speaking of the earth specifically, the geosphere must form first as this creates a separation of layers called differentiation. As the earth's layers are forming (ie, crust, mantle, outer core, inner core) this creates the cycling of the magnetic field around the earth. Without the magnetic field, there would be no atmosphere as the sun's radiation would strip it from the earth. The atmosphere would follow the geosphere formation.