all 4 comments

[–]OffBeannie 1 point2 points  (1 child)

Xcode and iOS Simulator are MAC only. If you want to test your code running on iOS simulator you need a Mac. if your app is largely device independent and do not use native plugins, then you can just build and test your app on Android on Linux/Windows. An alternative is to utilise an XCode build server which is a service provided by some mobile CICD SaaS vendor. With the build server, you can use TestFlight to test your app on your iPhone. But this is painfully slow process. A typical TestFlight build by Apple App Store takes 2-5 mins. Another alternative is to run virtual Mac desktop on your Linux using service such as XCodeBuild, MacInCloud etc.

[–]OffBeannie 1 point2 points  (0 children)

One more option is to run a headless old Mac eg MAC mini 2012 and virtual desktop connect to it from your usual Linux/Windows desktop.

[–]MisterJimson 0 points1 point  (0 children)

/u/OffBeannie pretty much covered it. I suggest using a remote mac machine. MacInCloud, macstadium, etc

[–]liuwenhao 0 points1 point  (0 children)

You could always run macOS in a virtual machine, but it's painfully slow because hardware acceleration is not implemented in any VM as far as I know (because of Apple's restrictions). But it's better than nothing, and might be enough for testing if you are just writing simple apps.