FAR 91.109 (c)(1) says that during simulated instrument conditions, a control seat must be occupied by a pilot rated for the aircraft. Put them together and the sole manipulator can log PIC time, and the safety pilot acting as PIC can also log PIC time.