DocsYour devices
The iPhone app
OwnWing for iPhone is one native SwiftUI app for OwnWing ID, Photos, Files, Calendar, Reminders, Contacts, Notes and the extensions that ship an iPhone module. It talks only to your server.
Get it from the App Store (a public TestFlight comes first), or build your own copy from the source, signed with your own Apple account: the rest of this page. Your own copy is the way to include extensions the App Store build doesn’t carry, or to run changes of your own.
What you need
- A Mac with Xcode 26 or newer (the app targets iOS 26 and its Swift packages need Swift 6.2).
- XcodeGen:
brew install xcodegen. The Xcode project is generated fromios/project.ymland not committed. - An Apple account added to Xcode (Xcode › Settings › Accounts). A free Apple ID works; its installs stop opening after 7 days until you install again. A paid Apple Developer membership doesn’t expire that way.
- An iPhone on iOS 26, with Developer Mode on (Settings › Privacy & Security › Developer Mode, offered after the first install from Xcode).
- An OwnWing the phone can reach, on a real domain (
id.example.com).ownwing.localhostonly works on the server itself: on a phone,localhostis the phone.
1. Your bundle id and team
cd ios
cp Config.example.xcconfig Config.xcconfig
Edit ios/Config.xcconfig (git-ignored, so it stays yours):
| Setting | What |
|---|---|
OWNWING_BUNDLE_PREFIX |
a reverse-DNS prefix you own, e.g. com.example. The app’s bundle id becomes <prefix>.ownwing (and <prefix>.ownwing.uitests for the UI tests) |
DEVELOPMENT_TEAM |
your Apple team id, 10 characters. For a free Apple ID, Xcode › Settings › Accounts shows its “Personal Team” id |
ios/Base.xcconfig holds the defaults and includes your file last, so your values win.
2. Build and install
With the script
Connect the iPhone (cable, or the same Wi-Fi once paired), unlock it and trust the Mac. Then, from a normal Terminal window (signing needs your unlocked login keychain):
ios/scripts/install-on-iphone.sh
It writes the extensions’ modules into the project (ios/scripts/extensions.sh), generates the
project, builds, signs, installs and opens the app. Without Config.xcconfig, it takes the team
from the Apple Development certificate in your keychain and the bundle id app.ownwing.<team>.ownwing.
TEAM=…, PREFIX=… and DEVICE=<udid> override what it finds. The log is in
ios/build/install.log.
With Xcode
cd ios
scripts/extensions.sh # this checkout's extension modules (extensions/*/ios); git-ignored
xcodegen generate
open OwnWing.xcodeproj
The Xcode target is still called Home; the app on the phone is OwnWing. Choose your iPhone as the destination and Run. If iOS refuses to open it the first time: Settings › General › VPN & Device Management › trust your Apple ID.
3. Trust your server’s certificates
Skip this if your install uses Let’s Encrypt (OWNWING_ACME_EMAIL). With OwnWing’s own CA, the phone
has to trust its root, or nothing will connect:
- On the server:
./ownwing ca. It writes the root certificate to<OWNWING_DATA>/ownwing-root-ca.crt. - AirDrop or mail that file to the iPhone and open it.
- Settings › Profile Downloaded › Install.
- Settings › General › About › Certificate Trust Settings › turn the OwnWing root on.
Step 4 is easy to miss: an installed profile alone isn’t trusted for websites and apps.
4. First launch
The app asks for your OwnWing ID’s address: the one you sign in at in a browser (id.example.com).
It checks that the address is an OwnWing ID, signs you in with your account there and finds your
apps from it. Face ID or Touch ID checks it’s you before the app opens.
Everyone in your home can install the same build on their own phone and sign in with their own account.
Updating
Pull the repo (./ownwing update does it on the server; on the Mac, git pull) and run
ios/scripts/install-on-iphone.sh again, or Run from Xcode. Your sign-in and settings stay.
When something goes wrong
| Problem | What to check |
|---|---|
| “No Apple Development certificate” | Add your Apple ID in Xcode › Settings › Accounts, or fill in DEVELOPMENT_TEAM |
| Signing fails: the bundle id is taken | Bundle ids are global: choose a prefix of your own in Config.xcconfig |
| “No iPhone found” | Unlock the phone, trust the Mac, turn Developer Mode on; or pass DEVICE=<udid> |
| The app stopped opening after a week | A free Apple ID’s install expired: install again |
| “Can’t connect” at the address screen | Open https://id.example.com in Safari on the phone. A certificate warning means step 3; nothing at all means DNS or the network: the phone must resolve your domain to the server |
| Command-line builds break with odd linker errors | A shell profile that sets SDKROOT, LDFLAGS or CC for macOS links macOS libraries: the scripts unset them; do the same for your own xcodebuild |
More in troubleshooting.