1

noob developer here.

I’ve just finished coding my first simple program using C++ in Xcode (that’s the only language I know for now), and I would love to turn it into an IOS app but I can’t seem to find a way to do it other than learning Swift and rewriting it all. Am I missing something here? Thanks.

  • 4
    You can use C++ to make an iOS app. (My app is such an app.) But you'd be much better off using Swift on iOS, because that is the path of least resistance on that platform. Using C++ will be a constant struggle to fit square pegs in round holes. When in Rome, do as the Romans do. – Eljay Aug 27 '21 at 15:24
  • 1
    Our company iOS/Android application is written mainly in portable C++. We need some Objective-C++ code for bridging with iOS native API. So yes, it is mainly possible, but difficult. I would not recommend this path for a beginner. – prapin Aug 27 '21 at 15:32
  • [Embarcadero C++Builder](https://www.embarcadero.com/products/cbuilder) supports iOS and Android development in C++. You can get the [Community Edition](https://www.embarcadero.com/products/cbuilder/starter) for free. – Remy Lebeau Aug 27 '21 at 17:53
  • 1
    Does this answer your question? [Is it possible to program iPhone in C++](https://stackoverflow.com/questions/270455/is-it-possible-to-program-iphone-in-c) – Zoe Aug 28 '21 at 08:34

1 Answers1

0

JUCE is a great platform for building multi-platform applications with C++. You can build iOS, Android, macOS, Windows and Linux applications from the same codebase. JUCE handles most of the platform specific configurations so you can focus on writing C++ code.

It is particularly great for developing audio applications but you can just skip the audio stuff if you want to and do something else. Developing a good UI with pure C++ will be difficult if not impossible so you probably should learn a multi-platform UI framework like Flutter or React Native if you want people to enjoy using your applications. Swift is great if you want to focus on just iOS.

Reksa
  • 73
  • 7