ios iOS模拟器在Mac上测试网站

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14540780/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 22:02:00  来源:igfitidea点击:

iOS Simulator to test website on Mac

iostestingsafari-web-inspector

提问by user1937021

I need to test my site on an iOS device from a Mac.

我需要在 Mac 上的 iOS 设备上测试我的网站。

Is there a desktop simulator available to do this?

是否有可用的桌面模拟器来执行此操作?

回答by Ares

You can use the iOS simulator to do this. You need to enable "Developer Mode" on Safari (Preferences -> Advanced).

您可以使用 iOS 模拟器来执行此操作。您需要在 Safari 上启用“开发者模式”(首选项 -> 高级)。

Then open the website you want to debug in the iOS simulator. Go back to safari and under Develop you will see the simulator and the tabs open on safari.

然后在iOS模拟器中打开你要调试的网站。返回 safari,在 Develop 下,您将看到模拟器和在 safari 上打开的选项卡。

If you want to test an actual device, then just plug it into your computer and it should show there too.

如果你想测试一个实际的设备,那么只需将它插入你的计算机,它也应该显示在那里。

That's how I do it.

我就是这样做的。

回答by Piyush Rathi

You can check and use their free trial browserstack, saucelabsor browser shotsI know this is a very old question and I am answering too late and today there are many options available but may be someone get this usefull.

您可以检查并使用他们的免费试用版浏览器堆栈沙司实验室浏览器截图。我知道这是一个非常古老的问题,我回答得太晚了,今天有很多可用选项,但可能有人会对此有用。

回答by jmarceli

If you are on Mac OS X just use Simulator. I don't know if it is available by default but it looks like it is a part of the Xcode suite.

如果您使用的是 Mac OS X,只需使用Simulator。我不知道它是否默认可用,但看起来它是 Xcode 套件的一部分。

Anyway it is free and really useful, it allows you to simulate many popular Apple devices:

无论如何,它是免费且非常有用的,它允许您模拟许多流行的 Apple 设备:

enter image description here

在此处输入图片说明

回答by Matt Sieker

You could look into using BrowserStack: http://www.browserstack.com

您可以考虑使用 BrowserStack:http://www.browserstack.com

While not free, it is rather cheap. It allows you to test against several iOS versions on both iPhone and iPad, along with Android, and various desktop browsers and OSs. It has proved quite invaluable to my workplace for doing just these sort of tests.

虽然不是免费的,但它相当便宜。它允许您在 iPhone 和 iPad、Android 以及各种桌面浏览器和操作系统上针对多个 iOS 版本进行测试。事实证明,仅进行此类测试对我的工作场所来说非常宝贵。

回答by Daniel Mejía

You could also download Xcode to your mac and use iPhone simulator.

您还可以将 Xcode 下载到您的 Mac 并使用 iPhone 模拟器。

回答by Rachel Gallen

iPhoney is designed specifically for Mac users

iPhoney 专为 Mac 用户设计

you can read about it and download it here

你可以在这里阅读并下载它

回答by P.J

I use this site mostly

我主要使用这个网站

Its good one

它的好

http://iphone4simulator.com/

http://iphone4simulator.com/

Still its better preferred to test on real device..

仍然最好在真实设备上进行测试。

Hope this info helps you..

希望这些信息能帮到你。。