this post was submitted on 14 Apr 2024
128 points (92.7% liked)

Technology

62782 readers
2410 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 10 months ago (2 children)

Of course. Apple already has had emulators for iOS for years, it's how most devs do mobile development. I use an iPhone and iPad emulator at work to occasionally run our app to test it, it's way nicer than running on an actual iPhone or iPad (I don't have either anyway).

[–] [email protected] 1 points 10 months ago (2 children)

Apple already has had emulators for iOS for years, it's how most devs do mobile development.

AFAIK Apple does not release an iPhone emulator to the public. There is one third party emulator I’m aware of but that’s mainly intended for security research and not general development.

it's way nicer than running on an actual iPhone or iPad (I don't have either anyway).

Hard disagree.

[–] [email protected] 1 points 10 months ago (1 children)

If you want to test something performance sensitive, it sucks. But for regular edit/reload dev cycle, I much prefer it.

[–] [email protected] 2 points 10 months ago

Also for anything UI related. You want to test how it actually feels to use, e.g. if you can reach the UI elements with one hand. Using it with a mouse on a monitor just doesn’t give you a good sense of that. Especially if your UI involves gestures.

[–] [email protected] 4 points 10 months ago (2 children)

Xcode has a simulator that can run any model of iPhone or iPad. Works exactly like a real device.

[–] [email protected] 2 points 10 months ago (1 children)

Yes, that’s what I mean. It’s a simulator, not an emulator. It does not work exactly like a real device. For simple stuff, sure, but if you dive below the surface even a little it’s very different.

One example is anything to do with the GPU / Metal. It has a very different set of capabilities and limitations than actual iOS hardware.

[–] [email protected] 1 points 10 months ago

Oh, I haven't needed to touch that yet. Good to know for the future!

[–] [email protected] 2 points 10 months ago

Yup, that's exactly what I'm talking about. I think it's a real emulator given how crappy it runs, but I could be wrong.

[–] [email protected] 1 points 10 months ago (2 children)

What emulator do you use? Does it run on Linux?

[–] [email protected] 5 points 10 months ago (2 children)

Apple provides an iPhone emulator as part of their official SDK. Free to download, but only runs on Mac.

[–] [email protected] 3 points 10 months ago

Apple provides an iPhone emulator as part of their official SDK.

No they don’t.

[–] [email protected] 1 points 10 months ago (1 children)

Would it run on my macOS 11 VM?

[–] [email protected] 4 points 10 months ago (1 children)

Probably. Go to developer.apple.com. You want to download Xcode and install the iOS SDK through XCode. You may need to make (free tier) Apple Developer Account before it lets you download.

Note that you can’t install apps from the iOS App Store on the iOS simulator; only a handful of system apps and anything you build for the simulator yourself.

[–] [email protected] 1 points 10 months ago

Can't install any apps from the store on the macOS VM either, lol

[–] [email protected] 4 points 10 months ago (1 children)

They are referring to the iPhone simulator that’s part of Xcode and is exclusively available on Macs.

[–] [email protected] 0 points 10 months ago