iOS
Wails v3 apps run on iOS as fully native apps — and the best part is they work
exactly like the desktop version. The same Go backend, the same frontend, the
same @wailsio/runtime: service bindings, events, dialogs and the clipboard all
behave identically, with zero mobile-specific rewiring. There’s no separate
mobile codebase, no porting layer, and no special API to learn — your existing
Wails app simply runs on iOS. Porting is genuinely seamless: bring your app
across as-is and ship.
The same main.go builds for both desktop and iOS; iOS-specific touches are
configured through application.Options.IOS.
Requirements
Section titled “Requirements”- macOS with full Xcode installed (the command-line tools alone are not
enough) —
wails3 doctorshows the iOS SDKs it can find - Go 1.25+ and npm
Simulator
Section titled “Simulator”From your project directory:
wails3 task ios:runThis builds your app, boots a simulator if one isn’t already running, and launches it.
Useful companions:
wails3 task ios:logs:dev # stream the app's logs from the simulatorwails3 task ios:xcode # open the generated Xcode projectIn debug builds the webview is inspectable from Safari’s Develop menu.
Packaging
Section titled “Packaging”wails3 task ios:package # production .app for the simulatorwails3 task ios:deploy-simulator # install + launch itThese are optimised, stripped production builds.
Device builds
Section titled “Device builds”wails3 task ios:package IOS_PLATFORM=device \ CODESIGN_IDENTITY="Apple Development: You (TEAMID)" \ PROVISIONING_PROFILE=path/to/profile.mobileprovision
wails3 task ios:deploy-device [DEVICE_ID=<udid>] # install + launch on a devicewails3 task ios:package:ipa IOS_PLATFORM=device ... # distribution .ipaIOS_PLATFORM=device builds for a physical device. Entitlements come from
build/ios/entitlements.plist and apply to device builds only — add the
capability keys your app needs.
Configuration
Section titled “Configuration”build/config.yml:
ios: bundleID: com.example.myapp displayName: My App version: 1.0.0 minIOSVersion: "15.0"Startup options (application.Options.IOS) include DisableScroll,
DisableBounce, DisableScrollIndicators, DisableInputAccessoryView,
EnableBackForwardNavigationGestures, DisableLinkPreview,
EnableInlineMediaPlayback, EnableAutoplayWithoutUserAction,
DisableInspectable, UserAgent, ApplicationNameForUserAgent,
BackgroundColour, and native bottom tabs via EnableNativeTabs +
NativeTabsItems.
Native features
Section titled “Native features”iOS-specific capabilities are available through application.IOS, called from
Go inside a //go:build ios file so your shared code stays platform-agnostic.
Android offers the same set through application.Android.
One-shot actions return immediately:
//go:build ios
application.IOS.Haptic("impact-medium") // impact-light|impact-medium|impact-heavy|success|warning|error|selectionapplication.IOS.Share(`{"text":"Hi","url":"https://wails.io"}`)application.IOS.SetKeepAwake(true)application.IOS.PostNotification(`{"title":"Done","body":"Build finished","delay":2}`)application.IOS.SecureSet("token", "abc") // stored securelyQuery helpers return their results as JSON — SafeAreaJSON(), AppInfoJSON(),
PowerJSON(), NetworkJSON(), StorageJSON(), GetOrientation(),
GetBrightness(). StoragePath() returns the absolute path to the app’s
Application Support directory — a good home for databases and other persistent
files (the iOS analog of Android’s getFilesDir()). The directory is created on
first access; StoragePath() returns an empty string if it cannot be created,
so check for "" before using it.
Events
Section titled “Events”Anything that finishes later — a permission prompt, a sensor stream, a camera
capture — delivers its result as an event rather than a return value, which
you can listen for in Go or the frontend. Names are prefixed common: for
capabilities shared with Android and ios: for iOS-only ones.
// Goapp.Event.On("common:location", func(e *application.CustomEvent) { // e.Data -> {"lat":..,"lng":..,"accuracy":..} or {"error":..}})// frontendimport { Events } from "@wailsio/runtime";Events.On("common:notification", (e) => { /* {ok, scheduled, presented, tapped, error} */ });| Event | Triggered by | Payload |
|---|---|---|
common:biometric | BiometricAuthenticate(reason) | {ok, error} |
common:location | GetLocation() | {lat, lng, accuracy} / {error} |
common:motion | SetMotion(true) | {x, y, z} |
common:proximity | SetProximity(true) | {near} |
common:keyboard | SetKeyboardWatch(true) | {visible, height} |
common:torch | SetTorch(bool) | {on, available} |
common:notification | PostNotification(json) | {ok, scheduled, presented, tapped, error} |
common:capture | CapturePhoto() / CaptureVideo() | {type, path, size, thumb} |
common:screenCapture | SetScreenProtect(true) | {screenshot, recording} |
ios:backgroundTask | BeginBackgroundTask(seconds) | {message, granted} |
The kitchen-sink example under v3/examples/mobile wires every feature above
end to end.
WebView controls
Section titled “WebView controls”A few WebView behaviours can also be changed at runtime from Go:
application.IOS.SetScrollEnabled(false)application.IOS.SetBounceEnabled(false)application.IOS.SetScrollIndicatorsEnabled(false)application.IOS.SetBackForwardGesturesEnabled(true)application.IOS.SetLinkPreviewEnabled(false)application.IOS.SetInspectableEnabled(true)application.IOS.SetCustomUserAgent("MyApp/1.0")The bundled @wailsio/runtime also exposes a small frontend iOS namespace:
import { IOS } from "@wailsio/runtime";await IOS.Haptics.Impact("medium"); // light|medium|heavy|soft|rigidconst info = await IOS.Device.Info();Native bottom-tab selections arrive as a nativeTabSelected event on window.
Support status
Section titled “Support status”| Area | Status |
|---|---|
| Frontend rendering & assets | ✅ |
| Service bindings, events (both directions) | ✅ |
| Message dialogs | ✅ |
| Open file / files / directory dialogs | ✅ Imported as sandbox copies |
| Save file dialogs | ❌ Write inside the app sandbox instead |
| Clipboard | ✅ |
| Screens API | ✅ Includes safe-area work area |
| Lifecycle events | ✅ |
| Window geometry, menus, system tray | No-ops on iOS |
| Multiple windows | Only the first window is shown |
Porting notes
Section titled “Porting notes”- Desktop code builds for iOS unchanged — window, menu and system-tray calls simply do nothing.
- Replace save-file dialogs with a write into the app’s sandbox plus a share.
- Design the frontend responsively; safe areas are handled for you.