1 Reply
      Latest reply on Mar 14, 2019 3:44 AM by eskimo
      r0nc00k Level 1 Level 1 (0 points)

        I created an app with a calendar and it shows correctly on the emulator but when I run it on the phone (iPhone X), it shows up wrong.   The month of March 2019 starts on the correct day on the emulator but NOT on the phone.   I am so confused.


        Here is the emulator photo.



        Here is the phone photo.


        • Re: calendar right on emulator but wrong on phone
          eskimo Apple Staff Apple Staff (11,215 points)

          First up, the iOS Simulator is not an emulator.  If you think of it that way, you will fall into all sorts of logical traps.  For example, an emulator would be capable of hosting NetworkExtension providers, but the simulator can’t because it uses the Mac’s networking stack.

          One other thing that the simulator uses from the host Mac is the current time setting, so this distinction could be relevant to your problem.

          Apropos that problem, it’s hard to offer any advice without knowing how you’re generating your calendar.  iOS has a wealth of calendrical APIs, and using them to render a calendar is tricky, especially if you want to handle all the edge cases.  Can you explain the approach that you took?

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"