Fix build error of debug build for simulator.