Installation
Requirements
- iOS
15.0or newer deployment target. - Xcode
16.3or newer. - Python
3.9or newer — for the one-time setup script. macOS ships with it. - GitHub repository access. Genies invites you to
geniespartnersdk-iosandgeniesnafsdk-ios; accept both before you start.
1. Set up package access
The SDK ships from private GitHub repositories, so Xcode needs credentials before it can resolve the package. A setup script handles that in one command — you don't need to configure SSH keys or hand-write a ~/.netrc.
Create a token. On GitHub, make a classic personal access token with the repo scope at github.com/settings/tokens.
GitHub shows the token once and never again. Save it somewhere you'll still have it later — a password manager is ideal. You'll want it again to set up another machine or to configure CI, and the only alternative is generating a new one.
Download the script. Grab genies-setup.py from the 0.3.0 release while signed into GitHub, or use the copy Genies sent you. There's nothing to clone or unpack, and no Python packages to install.
Run it from wherever you downloaded it, and paste the token at the hidden prompt:
python3 genies-setup.py ios
The script identifies your GitHub account, confirms you can reach both repositories, downloads a private binary to prove asset access actually works, and only then writes the credentials to ~/.netrc with owner-only permissions. Unrelated ~/.netrc entries are left alone. If a check fails, nothing is written.
Never send the token to Genies and never commit it. Setup prompts for it on every run rather than reusing whatever is already on disk — paste the same token again, or a new one to rotate. The script refuses to take a token as a command-line argument.
2. Add the package in Xcode
File → Add Package Dependencies, then:
https://github.com/genies-sdk/geniespartnersdk-ios
Exact Version: 0.3.0
Products: GeniesPartnerSDK, GeniesPartnerSDKNAF
Pin an exact version. The package offers two products, and most apps add both:
| Product | What it carries |
|---|---|
GeniesPartnerSDK | The Auth, Inventory, and Notifications modules. |
GeniesPartnerSDKNAF | Avatar conveniences and chat, bridging the modules to NAF. |
NAF resolves automatically either way — the Partner SDK pins the NAF version it was built against, so you don't choose it yourself. See How it fits together for when you'd want one and not the other.
If you generate your project, the package looks like this:
packages:
GeniesPartnerSDK:
url: https://github.com/genies-sdk/geniespartnersdk-ios
exactVersion: 0.3.0
targets:
YourApp:
dependencies:
- package: GeniesPartnerSDK
product: GeniesPartnerSDK
- package: GeniesPartnerSDK
product: GeniesPartnerSDKNAF
On CI
The script won't prompt without an interactive terminal. Supply the token through the environment instead:
GENIES_SDK_TOKEN=<token> python3 genies-setup.py ios --non-interactive
Known issues
An older project pinned to an SSH package URL. Token setup configures HTTPS only. If your project still resolves git@github.com:…, switch the package URL to the https:// form above — a PAT alone can't satisfy an SSH dependency.
Xcode cached a failed resolve. Configure credentials before Xcode starts resolving and it shouldn't need a restart. If it already failed once, quit Xcode, then reopen and resolve again. Forcing resolution from the command line makes Xcode use system Git and ~/.netrc:
xcodebuild -resolvePackageDependencies \
-project YourApp.xcodeproj \
-scheme YourApp \
-scmProvider system \
-packageAuthorizationProvider netrc
Intel simulator slices. The package ships arm64 simulator slices. On an Intel Mac, exclude x86_64 for simulator builds:
settings:
base:
"EXCLUDED_ARCHS[sdk=iphonesimulator*]": x86_64
Next steps
GitHub package access is separate from runtime configuration — your app still needs the environment and the app ID Genies issued you. The Quick Start picks up there.