I’ve had a few times that my iphone‘s spark attitude indicator and North marker was way off. So yesterday I completed a field compass calibration. i also did an IMU calibration at home. I then went for a flight and still found the direction wrong. So I flipped my phone and all is well. i now keep the lightning end on the left.