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
iOS Simulator to test website on Mac
提问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 设备:
回答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
回答by P.J
I use this site mostly
我主要使用这个网站
Its good one
它的好
Still its better preferred to test on real device..
仍然最好在真实设备上进行测试。
Hope this info helps you..
希望这些信息能帮到你。。