The treaty explicitly forbids any government from claiming a celestial resource such as the Moon or a planet.[3] Art. II of the Treaty states that "outer space, including the Moon and other celestial bodies, is not subject to national appropriation by claim of sovereignty, by means of use or occupation, or by any other means"."
This basically means that no one can lay claim to stuff in space. But say there is an extremely valuable metal floating around, and company A wants to mine it. They arrive and start to mine it. Now, company B arrives a year later and also wants to mine it but company A is in the way. According to the treaty, company A can't claim the resource so they can't tell company B to go away, and company B can't tell company A to get out of the way. How does this get resolved?