在Xcode模拟器中更改时间和日期 [英] Changing the time and date in Xcode simulator

查看:254
本文介绍了在Xcode模拟器中更改时间和日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iPhone模拟器中更改时间?我希望手机上的其他应用看到的时间与当前时间不同.

How to change the time in the iPhone simulator ? I want the other apps on my phone to see a different time than the current one.

推荐答案

更改主机Mac上的系统时间.模拟器运行一个单独的用户空间,但共享内核,因此它与主机的时间没有不同.

Change your system time on the host Mac. The Simulator runs a separate userspace but shares the kernel so it doesn't have a notion of a different time from the host.

这篇关于在Xcode模拟器中更改时间和日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆