Linux 环境下的仿真/模拟 iOS

我正在开发一个网络应用程序,显然是有问题的 iOS 设备。问题是我没有 iOS 设备,而且我是用 Linux Ubuntu 开发的。我正在寻找一种在 Linux (尤其是浏览器)中模拟/模拟这个操作系统的方法,但是没有找到任何东西。

到目前为止,我发现的是 iOS SDK 的模拟器,但这是为 Mac 设计的。还有一些 Windows 的模拟器。以前有人这么做过吗?

143194 次浏览

As far as I know, there is no such a thing as iOS emulator on windows or linux, there are only some gameengines that enable you to compile same code for both iOS and windows or linux and there is a toolchain to compile iOS application using linux. none of them are realy emulator/simulator things. and to use that toolchain you need a jailbreaked iOS device to test binary file created using toolchain. I mean linux itself can't run the binary created itself. and by the way even in mac simulator is just an intermediate program which runs mac-compiled binary, since if you change compiling for iOS from simulator or the other way, all the files are rebuild. and also there are some real differences, like iOS is a case-sensitive operation while simulator is not.

so the best solution is to buy an iOS device yourself.

The only solution I can think of is to install VMWare or any other VT then install OSX on a VM.

It works pretty good for testing.

BrowserStack.com
On this site, you can emulate a lot of iOS's devices online.

Maybe, this approach is better, https://saucelabs.com/mobile, mobile testing in the cloud with selenium

On linux you can check epiphany-browser, resizes the windows you'll get same bugs as in ios. Both browsers uses Webkit.

Ubuntu/Mint:

sudo apt install epiphany-browser

  1. Run Ripple emulator(retired as of 2015-12-06) on Chrome
  2. Run iPadian on WineHQ
  3. Run QMole on Linux or Android
  4. Run XCode on PureDarwin

You might want to try screenfly. It worked great for me.