iPhone device vs. iPhone simulator

后端 未结 25 2473
暖寄归人
暖寄归人 2020-11-28 07:51

I have heard of apps not working properly on the simulator but working properly on the actual iPhone device. Has anyone experienced an app that runs perfectly in the simula

25条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 08:16

    One big thing that took me a while to spot was that the simulator does not support device tokens, so any code that involves those will not run on the simulator.

    I had a bug where the app would work fine on the simulator, but would crash when I ran it on a device because there was a bug in the device token code. I couldn't figure it out for the longest time!

提交回复
热议问题