fix simulator support on ios