How to emulate iOS? To test apps

Asked

Viewed 6,065 times

0

Hello

I need to develop an app that runs on android and iOS. I’m thinking of using React Native. I was told about Flutter but I’m afraid that I have little time.

So I thought.... how will I test the app on iOS if I don’t have a Mac.

I did a quick search on google only saw as I understood... that puts windows with the face of iOS.

Do you have emulators for Windows? What emulators?

  • Flutter is Google, new language, for Android and iOS, and soon Web... there is no way to be afraid! I would be afraid to lose the advance at the beginning, yes!

  • 1

    Windows with iOS face is not emulator, is at most simulator and is neither able to run apps, nor development, and no, Flutter is not just a language, is a Development Kit. The only way to emulate iOS is to have a Macos, or create a hackintosh or hire a cloud (mac server in the cloud).

  • 1

    Any answers? https://answall.com/q/213185/101, https://answall.com/q/35337/101 and https://answall.com/q/157445/101

1 answer

7


It is not something of Flutter itself, but Apple’s own requirement, to compile for iOS is necessary the Xcode, which only has in its products, not at all 'Developer friendly'.

Regardless of the technology you will use (Flutter, React Native, Ionic, Native...), you will come across this same problem if you want to generate app for iOS.

But that doesn’t mean you necessarily need to buy a Mac. You have a few options:

  • Pay a few hours to use a Mac in the cloud. Services like that, that or that.

  • Try to install and use the Mac on Windows through Virtualbox, but already notice that it is a way that will give many problems. (more here or here)

  • Borrow a Mac from someone you know, or pay for the loan..

But beyond all that, it is valid to quote the following.

Flutter’s SDK takes for itself the responsibility of rendering all widgets on the canvas of our smartphone, which means that it does not 'depend' on the platform for that service, what ends up giving an immense freedom to the developers and visual independence of the platform itself.

With that in mind, just so you know how your app will look on iOS (visually and behaviorally) 'double-cross' the SDK for him to think he is running on an iOS. And to our delight, to do this with Flutter would just click a button.

Using the inspector flutter itself, there is this option Togge Platform:

Toggle Platform

After clicking, in the console comes the information:

Switched platform rendering to Android.

or

Switched platform rendering to iOS.

And the behavior of the app running with Android 'mimics' the behavior of the app with iOS:

inserir a descrição da imagem aqui

Above, Appbar title renders to center if iOS.

  • 1

    Man... you’re pulling on Flutter’s side... it can’t be... rsrs... Show... I’m gonna have to test that parade.

  • React Native may be a good option as well. O Expo provides an excellent abstraction for this and allows you to test on real devices without having to compile native code (either for iPhone or Android).

  • Mathias... but this expo... I can carry my project? How it works

Browser other questions tagged

You are not signed in. Login or sign up in order to post.