I've non-googled this, but everything in the results is so 'slop' that it hurts to read. The only halfway helpful result was apple's page for developers, but I was curious if one has to use their xcode/swift environments.

you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 2 months ago (4 children)

For iOS, you need to use the Xcode toolchain, which builds the app and cryptographically signs it to run on a device (Apple control provisioning for iPhones in general, but you can set up your own devices to run apps you’ve signed yourself). You can use Swift or Objective C, for which the APIs are available, though can also link in code in other languages (C/C++, Rust, Go, Kotlin and so on).

Google used to have a cross-platform system named Flutter, which let you write apps in a language named Dart and compile them for iOS or Android, though you still need to use the Xcode toolchain for iOS; not sure if that’s still maintained.

You can also use things like React Native (i.e. your logic is in JavaScript, but is deployed in an app that builds the UI from native components and connects it to your code), but the apps produced this way tend to feel a bit off (laggy/unresponsive, and sometimes with the UI behaving weirdly). Or you could make a PWA (Portable Web Application), which is essentially a web page with a file that tells mobile browsers that it can be saved as an app to the desktop, though those, naturally, feel like a web page rather than a native app and are more limited.

  • source
  • hideshow 4 child comments
  • [–] 2 points 2 months ago (2 children)

    I’d like to highlight your comment at the end: if you make a Portable Web App (PWA), it’ll run on iOS and Android and doesn’t require a developer subscription, an App Store or anything else. Just knowledge of the APIs and an idea.

    Once you’ve proven the concept as a PWA, you may want to convert it to an app to get access to more protected APIs and get it onto the official App Stores though.

    But with WebASM as a target, anything that doesn’t require a specific OS API runs just as well through a PWA as using an official dev environment.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 1 point 2 months ago

    I think having a PWA is going to be a harder task for the idea I have in mind.

    This is also going to be baby's first real program, so following along with the 'native' language for the phone will hopefully make things easier on me.

  • source
  • parent