Emulate/Simulate iOS in Linux [closed]
Asked Answered
G

7

100

I'm developing a web app that apparently is having problems in iOS devices. The problem is that I don't own an iOS device and I develop in Linux Ubuntu. I'm looking for a way to emulate/simulate this OS in Linux (especially the browser), but haven't found anything.

So far, what I've found is the iOS SDK's Simulator, but that is meant for the Mac. And also some emulator for Windows. Has anyone done this before?

Globin answered 10/6, 2011 at 19:39 Comment(4)
The web app is intended mostly for regular browsers. However, a few users try to see it using an iPhone, and I needed to verify some problems they were having.Globin
If it's a layout issue I recommend installing the Konqueror web browser. Then look in settings to be sure it uses Webkit layout engine (same as safari).Petterson
Here is an article wich should solve your problem - proreactnative.com/…Ledford
macOS VM with QEMU+kvm, actively maintainedUdder
C
44

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.

Colony answered 10/6, 2011 at 19:54 Comment(7)
Doing this, as no other option seems available (except for actually acquiring the mobile devices in question).Globin
is it possible to deploy for tests an app on iphone using Linux?Cullan
With this solution, yes.Colony
Is there a legal way to do this? I stupidly bought an OSX CD thinking that I could install it in VirtualBox, but it turned out to be much more compilcated than that. I think you need some kind of hardware image which is not strictly legal to obtain. No?Ramburt
Virtualisation of some of the mac os is often not permited. apple.stackexchange.com/questions/20965/…Desiree
I have a "hackintosh" in VirtualBox (plenty of instructions online). Apart from the licensing issues, the performance is pretty bad and graphics glitches are common. Unless you only need a CLI environment, IMHO this option is not suitable for serious development.Prognostication
As far as I know, legally you can only install Apple OS on Apple hardware. To circumvent this issue, I've been using lambdatest.com. The downside is that you will have to deploy your web app publicly for being able to access it thorough here.Sinistrorse
L
43

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

Lemur answered 29/12, 2016 at 18:12 Comment(9)
This isn't a catch-all solution. The engine may be the same, but I have encountered some ios browsers which error on pages that render fine on epiphany. YMMVSonorous
Working well for me to fixing layout bugs on cordova hybrid appElbe
This may not be a perfect solution but it definitely helped me solve my javascript issue that was happening in Safari on iPhone without having access to one.Zibet
@Zibet That's it. When I've answered this, I got into this question because I was developing something in Cordova. As I remember, I've used this to solve some layout bugs. So it may be an amend about this answer.Lemur
Thanks to epiphany I could solve some iOS bugs. Thanks so much for sharing this!Feminize
This is underrated answer. Got the same bugs as on real iOSMaciemaciel
good idea for some (but not all) sorts of bugs, Epiphany is now officially known as "Gnome Web" browser, apps.gnome.org/en-GB/app/org.gnome.EpiphanyWinston
This is quite a quick and free solution to test most IOS bugs.. it helped me many times.. good answer..Contrapuntal
This used to work but as of today there are too many differences.Ottoman
F
11

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

Factotum answered 10/7, 2013 at 10:57 Comment(2)
Isn't this site testing, and not actual iOS application testing?Pattipattie
its only for remote testing purpose ...not for actual simulator on laptopGarner
H
5
  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
Hagiographa answered 7/5, 2018 at 10:45 Comment(0)
S
2

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

Subvert answered 14/5, 2014 at 21:12 Comment(1)
Link not working.Mella
H
0

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

Humber answered 19/3, 2019 at 0:17 Comment(3)
This is really a comment, not an answer. With a bit more rep, you will be able to post comments. Thanks!Heterochromous
@MiroslavGlamuzina, there is nothing else to add to my suggestion. Not a long answer required. CheersHumber
@MiroslavGlamuzina Yours is neither an answer nor a commentBenner
H
-2

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.

Hypoglossal answered 10/6, 2011 at 19:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.