LoginSignup
8

More than 5 years have passed since last update.

iOSシミュレーターの時間を変更!(local notificationを確認など)

Last updated at Posted at 2016-11-22

シミュレーターの時刻はmacのシステム時間と同期しているので、macの時間を変更してやればいい

dateコマンドで時間を変更

date %m%d%H%M%Y の形式で時刻を変更できる

sudo date 1220235916 <= 2016年12月20日23時59分に設定

システム環境設定から時刻を戻す

システム環境設定 > 日付と時刻 > 左下の鍵をクリック > パスワード入力

でntpから時刻を取得して元どおりになる

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8