{"id":20652096,"url":"https://github.com/elixir-desktop/ios-example-app","last_synced_at":"2026-04-06T00:02:12.768Z","repository":{"id":40620282,"uuid":"413602467","full_name":"elixir-desktop/ios-example-app","owner":"elixir-desktop","description":"xcode project wrapper around the Elixir TodoApp Desktop app to run on iOS","archived":false,"fork":false,"pushed_at":"2025-04-03T14:12:01.000Z","size":39019,"stargazers_count":75,"open_issues_count":4,"forks_count":8,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-03T00:05:21.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elixir-desktop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-10-04T22:35:34.000Z","updated_at":"2025-04-09T17:55:06.000Z","dependencies_parsed_at":"2025-07-03T00:15:29.937Z","dependency_job_id":null,"html_url":"https://github.com/elixir-desktop/ios-example-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elixir-desktop/ios-example-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-desktop%2Fios-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-desktop%2Fios-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-desktop%2Fios-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-desktop%2Fios-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elixir-desktop","download_url":"https://codeload.github.com/elixir-desktop/ios-example-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-desktop%2Fios-example-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31454200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T17:32:22.384Z","updated_at":"2026-04-06T00:02:12.749Z","avatar_url":"https://github.com/elixir-desktop.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TodoApp iOS: An iOS Sample App\n\nThis xcode project wraps the [Desktop Sample App](https://github.com/elixir-desktop/desktop-example-app) to run on an iPhone.\n\n## How to build \u0026 run\n\n1. Install xcode from the app store.\n1. Install brew, git, carthage, npm\n\n    `brew install carthage git openssl@1.1 npm`\n\n1. Install Erlang-OTP (with openssl) in the same version 25.0.4 as the bundled runtime edition:\n\n    ```\n    asdf install erlang 25.0.4\n    asdf install elixir 1.13.4-otp-25\n    ```\n\n    If above fails for you on an older mac or can't seem to find openssl you can try this custom build command as well:\n\n    ```\n    export DED_LDFLAGS_CONFTEST=\"-bundle\"\n    export KERL_CONFIGURE_OPTIONS=\"--without-javac --with-ssl=$(brew --prefix openssl@1.1)\"\n    asdf install erlang 25.0.4\n    asdf install elixir 1.13.4-otp-25\n    ```\n\n1. fork / git clone this project to your local disk:\n\n    `git clone https://github.com/elixir-desktop/ios-example-app.git`\n\n1. Build the dependencies:\n\n    `cd ios-example-app \u0026\u0026 carthage update --use-xcframeworks`\n\n1. Open the ios-example-app project with xcode\n1. Start the App\n\n## Known todos\n\n### Menus and other integration not yet available\n\nThis 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.\n\n##  Other notes\n\n- 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](https://github.com/elixir-desktop/runtimes) repository. \n\n- iOS specific settings, icons and metadata are all contained in this xcode wrapper project. \n\n- `Bridge.swift` and the native library are doing most of the wrapping of the Elixir runtime. \n\n## Screenshots\n\n![App](/app.png?raw=true \"Running App\")\n\n## Architecture\n\n![App](/ios_elixir.png?raw=true \"Architecture\")\n\nThe iOS App is initializing the Erlang VM and starting it up with a new environment variable `BRIDGE_PORT`. This environment variable is used by the `Bridge` Elixir project to connect to a local TCP server _inside the iOS app_. Through this new TCP communication channel all calls that usually would go to `wxWidgets` are now redirected. The iOS side of things implements handling in `Bridge.swift`.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-desktop%2Fios-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felixir-desktop%2Fios-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-desktop%2Fios-example-app/lists"}