TodoApp iOS: An iOS Sample App
This xcode project wraps the Desktop Sample App to run on an iPhone.
How to build & run
Install xcode from the app store.
Install brew, elixir, git, carthage, npm
brew install elixir carthage git npm
fork / git clone this project to your local disk:
git clone https://github.com/elixir-desktop/ios-example-app.git
Build the dependencies:
cd ios-example-app && carthage update --use-xcframeworks
Open the ios-example-app project with xcode
Start the App
Can only emulate on Apple M1 and on real iPhones
The bundled binaries are only for the real iPhone as well as the Apple M1 mac machines. If you’ve got an intel based x86 mac the emulator won’t run at the moment.
Menus and other integration not yet available
This sample only launch the elixir app and shows it in a WKWebView. There is no integration yet with the iOS Clipboard, sharing or other OS capabilities. They can though easily be added to the
Bridge.swift file when needed.
The Erlang runtime is for ease of use embedded in this example git repository. The native runtimes for M1 and iPhoneOS and the exqlite nif are are generated using the Desktop Runtime repository.
iOS specific settings, icons and metadata are all contained in this xcode wrapper project.
Bridge.swiftand the native library are doing most of the wrapping of the Elixir runtime.
Nearly identical to the Android version