Prerequisites
- Xcode and CocoaPods
- iOS deployment target 14.0+ in
Podfile(required for AIR Kit)
Associated Domains
- Open
ios/Runner.xcworkspacein Xcode. - Select the Runner target → Signing & Capabilities.
- Add Associated Domains.
- Add the domains you use:
Include only environments you actually use. Production and sandbox are the usual minimum.
App ID allowlisting
Provide Moca with your Apple Team ID and bundle identifier in the formTEAMID.com.example.app.
Podfile
Set the platform version:Info.plist (optional)
If you need ATS exceptions for specific domains, configure them narrowly inInfo.plist. Prefer default secure TLS where possible.
Optional usage strings if you add camera / photo features:
Testing
- Passkeys and full WebAuthn behavior require a physical device in many cases.
- Build with
flutter build iosand run from Xcode orflutter run.
Troubleshooting
| Issue | What to check |
|---|---|
| Domain verification failures | Capability enabled, correct team, provisioning profile, domains spelled correctly |
pod install errors | rm -rf Pods Podfile.lock, pod repo update, pod install |
| WebView / network | Associated Domains, device network, ATS settings |