Place both objects motionless in outer space a known distance apart over a massless ruler. By mutual gravitational attraction, they will attract to the common center of gravity. Use the iPhone camera to record the starting point and meeting point over the ruler. From the c.g. point and the starting points calculate the relative masses. Bonus if you can also do this using the iPhone's clock instead of camera.