Mac & iPhone time drift while using XCode fixed with Mac restart

We use Macs and iPhones for development.  We hit an interesting situation when one of the phones was used to develop Naksho and was capturing time sensitive upload requests to AWS.  Yes, S3 signed image upload requests with 60 second expiry vs. the default was the use case.

Well, the phone would get errors when it tried to upload the image.

The EC2 server was 3-4 minutes ahead of the Mac and the iPhone so that explains why AWS was rejecting the request.  Quick net search:

  1. – didn’t help
  2. – didn’t help
  3. – reboot – what????!!!

The fix was to restart the Mac with the iPhone connected and voilà the time was correct on the Mac and the iPhone.  Obviously, the image upload requests started working.  I guess we need to reboot Macs ever so often 🙂

Leave a Reply