r/iOSProgramming • • Dec 18 '22

[deleted by user]

[removed]

4 Upvotes

26 comments sorted by

View all comments

14

u/mrbass21 Dec 18 '22

There’s not a great solution. In order to test in the simulator, you’d need to remote into your remote Mac with VNC, which sucks.

VNC performance is garbage with any non-Mac to Mac. It’s really frustrating.

There’s also some things you can’t test in simulators and you’d need a real device or just code and pray it works.

I really wish there was some magic solution, but there isn’t. As someone who has Windows as a daily driver and has spent a lot of time trying to find a way to program from that machine (even VNCing to a local Mac, with frustrating results), I’d say your best options are:

  1. Buy a used Mac mini. This is by far the best way. I know not involves buy apple hardware, and I feel your pain, but just trust me that everything else out there is a gigantic pain in the ass.
  2. build a hackintosh. Probably will need an older version of MacOS, but unless you need the latest features, it should be enough.
  3. VMware. You can find guides for this, but it’s really not a good experience at all.

Those are options I would recommend to stay in the apple native languages, but if your goal is to produce an app and you don’t care about learning iOS, you might want to look into Xamarin or react native.

1

u/infinitysexbot Dec 18 '22

Thanks for the tips. I may end up getting a Mac sometime, but if i do i don't want the minimum , i'd rather budget and save up for a nice one eventually.

But for now yeah i don't want to focus on specifically learning iOS , and i was looking at some of those you mentioned but wasn't sure which one would be best.

I would prefer to work in Python language but that's not really a deal breaker, i just see that React is all in java-script? and Xamarin doesn't seem as versatile?

Which would you suggest i start with?

1

u/mrbass21 Dec 18 '22

Afraid I can't really offer any advice on that front. Start with the ones you're most excited about and work from there until you find a deal breaker.

I only want native development, so I've avoided the other hybrid frameworks. I know react native and at least a few years ago Xamarin were the hotness. I don't know if that's died down or not.

If you like Python, start in python. React will be JS and Xamarin is .NET. With hybrid frameworks, it will always be a trade off. You're never going to get performance or feature availability like doing native. They have their good points too.

ReactNative is probably the largest and most referenced I've seen, followed distantly by Xamarin. I had never heard of beeware or seen reference to them by anyone in industry I know.

I would say you need to evaluate the goal of this project.

Is it to produce a mobile app for iOS/Android in the quickest time/least effort possible? ReactNative and Xamarin are your guys.

Is it to learn mobile development? ReactNative/Xamarin are absolutely used in industry and if you want to learn hybrid development, it definitely has value.

Is it to learn iOS development? This is probably where my answer would be you should really just bite the bullet and either build a hackintosh or get a craigslist/cheap mac. Hybrid development is fine if you want to be versatile, but if you're wanting to dig deep into iOS and really use the platform, you're going to want to really dive in deep with Swift and how the OS functions.

Obviously, I'm biased. I have no interest in working in hybrid at all.

I _do_ wish that I could program iOS from my Windows computer, but other than writing a Swift library/CLI with limited features, we just are not there. Local VNC had worse performance than using TeamViewer. You really should just buy a cheap mac and learn the platform, then buy a beast mac once you're ready to utilize it.

Up until a year ago, my personal Mac was a 2010 17" MBP running dosdude1's patches to install later OSes. It was a slow computer, but it could do any personal project wanted it to. You can get a mac mini for almost nothing, especially if it's an X86 one and it would be the perfect cheap mac to get going on with some decent performance.

1

u/Soft_Elevator_200 Dec 19 '22

If you want to really pursue iOS for a career, you'll need mac equipment, swift, and native tools.

Top hybrid solutions right now are React Native and Flutter.

Kotlin Multiplatform is also a really nice solution. It's still pretty new, but allows a semi-hybrid approach while still keeping it native.

1

u/gumbi1822 Dec 20 '22

You could also get an iPad, and use Swift playgrounds to make an iOS app, but overall that’s still pretty limited.

I would pick whichever programming language you want to use and do that Flutter (Dart), Xamarin (C#), React Native (JS).

But as someone else mentioned Flutter and RN are the most popular right now.

1

u/srona22 Dec 19 '22

Agree. If targeted device involved any of Apple devices, better to use Mac, even used one it better than any of Cloud device.(build server is a different topic though).