r/iOSProgramming • • Aug 27 '24

Question Ios preview software

Post image

Hello, I’m new to app dev and I want to make my first app with flutter… So I watched some videos and some of them had this (photo) and I want to know how us this called or how can I use it. I have an old macbook 12’ 2017 so I hope that it’s not M processors feature…

2 Upvotes

12 comments sorted by

18

u/LavaCreeperBOSSB Beginner Aug 27 '24

It's called Simulator, download thru Xcode

-9

u/Playful-Ask-3330 Aug 27 '24

Can I used it with vscode? Because in xcode you can only use swift, right? I want to pair it with flutter if its possible…

6

u/iStumblerLabs Aug 28 '24

VSCode is a text editor with plugins to let you use various language, build systems, & c.. It has tools for working with Flutter, Xcode projects, and all the languages you would need to use to build a working app (which is a few more than just Dart/Swift/Objective-C).

Xcode is an IDE which is focused on enabling macOS/iOS/tvOS/ipadOS/visionOS developers to write great native software. It has a set of command line and other developer tools (including xcodebuild and the Simulator pictured above) to help with this.

Flutter is a cross-platform API and toolchain which lets you build software for iOS, Android, Desktop, and the Web using Dart. It's great if you understand all these targets and want to ship product across platforms.

To accomplish what you are trying to do (build your first app using Flutter) you will need to have at least a basic understanding of all of the above and how they interact. Possible, for sure, but it's a big lift for a beginning developer. While I think there's a place for Flutter, it's not the best first app language because of the prerequisite knowledge it requires.

Most "my first application" projects, which don't require platform specific or lower level APIs (e.g. file system or network) can be quickly prototyped in HTML and JavaScript, which is the lowest bar to entry: all you need is a text editor and web browser. If the app you want to make does need lower-level API access then the native development environment of your preferred target is the best one to learn (Xcode for macOS/iOS/... or Android Studio generally).

4

u/-darkabyss- Objective-C / Swift Aug 28 '24

Good on you typing it out, read this one OP

1

u/Hopeful-Sir-2018 Aug 28 '24

Not in the way you're probably thinking. VSC can do some impressive stuff but Apple didn't realize a CLI debugger or previewer - meaning VSC would just be a text editor with syntax highlighting and such. I mean I use it for more than half my work now because Xcode is dog shit.

However if you were in .Net it could, practically, be a full blown IDE if setup correctly.

But for anything Apple related? You're going to have to stick with Xcode and it's ... demonic self.

What you CAN do is code it in VSC and then swap windows to Xcode to reload the Previewer.

There's no reason to believe Apple will ever cooperate and make a debugger, Previewer, etc for anything else - which is likely why Swift won't ever gain major traction anywhere of value.

-2

u/LavaCreeperBOSSB Beginner Aug 27 '24

i think so

0

u/Playful-Ask-3330 Aug 27 '24

Okey, I will try it, Thanks very much

5

u/oguzhanvarsak Aug 27 '24

First install Xcode and download iOS runtimes by running it. This creates the default list of simulators. And then from VSCode, open command palette and search for “Flutter: Select Device”. You can select any simulator from the list and now when you run your Flutter project, it will show up on Simulator like in the photo you shared.

3

u/AnemicnaKrava Aug 27 '24

This is basic simulator you get when you use Xcode, you can manage run destinations (iPhone models and iOS versions) in top bar in Xcode.

3

u/fintechninja Aug 28 '24

Why not just check the docs https://docs.flutter.dev/ . They have all the info you need. Anyways that pic is the iOS simulator. You’ll need Xcode and keep in mind you need the latest Xcode to deploy to the AppStore. I’m not sure if your mac can use the latest macOS.

2

u/sambruce23 Aug 28 '24

If you're working with Flutter, check our r/FlutterFlow
You won't need a simulator to run your app. You can run it within FlutterFlow itself.
Alternative is to install simulator and run your app from VS Code.

-1

u/Charles211 Aug 28 '24

Not as a Criticism but some advice. If you’re somewhere chatgpt is allowed. Just send the picture to it. Or even google Gemini. And ask instead of waiting for people to respond. You’re gonna really need quick answers now that you’re going into coding. Good luck!