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.

        https://drive.google.com/open?id=17Y_m8V2NsX_bgEDpw-HL9BWKC0xkGoGb

         

        Here is the phone photo.

        https://drive.google.com/open?id=1eUpAx37OT97gqUu5AgTnT36s6HCF__Ih

        • Re: calendar right on emulator but wrong on phone
          eskimo Apple Staff Apple Staff (10,835 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"