Turn on iCloud, App Groups or another capability
Ask your Agents to give your app an Apple capability such as iCloud, App Groups or Sign in with Apple, then build it again and check it on a device.
Some features need Apple’s permission as well as code: syncing with iCloud, sharing data between your app and its widget (App Groups), Sign in with Apple, HealthKit and others. Apple calls these capabilities. A capability has to be turned on in two places: in the app itself, and on the app’s App ID, the record of its Bundle ID on your Apple team. Your Agents do both.
Before you start
- The Team’s owner has connected an Apple Developer account and switched a team on. The Agents change the App ID through it. See Connect your Apple Developer account.
- The app has a Bundle ID, which it gets on its first build. See Find your app’s Bundle ID and its last build.
Ask for the capability
- Open the project’s chat.
- Say what the feature should do. Name the capability if you know it.
- Send it. The Agents add the capability to the app, turn it on for the app’s App ID, and build the app again.
- Check it on a device (below).
For example:
Turn on iCloud so my notes sync between my iPhone and my iPad.Add an App Group so the widget can show today's tasks from the app.If your Apple Developer account has more than one team switched on, the Agent may ask which one with a card. See Connect your Apple Developer account.
Some capabilities need something of their own on your Apple team besides the switch: an App Group needs a group, and iCloud a container. The Agents create those too. Some capabilities can only be turned on through the owner’s Apple sign-in that AirBuild keeps. If that sign-in has expired, the Agents can’t finish: the owner signs in again in Settings › Developer. See Connect your Apple Developer account.
What changes
| Where | What happens |
|---|---|
| The app | Its project asks for the capability. |
| The App ID on your Apple team | The capability is turned on for it. |
| Signing | The app’s provisioning profile no longer matches the App ID. AirBuild issues a new one with the next signed build; nobody has to make one by hand. |
| Builds made before | They don’t have the capability. Install or upload a new build. |
Check it on a device
Check a capability on a real iPhone or iPad. Preview devices start with some services off, iCloud and Siri among them, so a feature that needs them may not work in Preview.
- Install the new build from AirBuild. See Install your app on your iPhone. Installing from AirBuild is in the TestFlight and direct-download builds of AirBuild.
- Or get it through TestFlight. See Share a beta with TestFlight.
When an install leaves a capability out
The install sheets say when the app goes on the device without a capability it asks for. The app still installs, but the parts that need the capability don’t work.
When you install from the project’s menu or from App Packages and the Install on Device sheet has signed the app for your device, it lists any capability it left out under Capabilities Left Out.
When you install over a cable with Developer Account, the sheet checks each capability before you sign, under these headings:
| Heading | What it means |
|---|---|
| Capabilities Left Out | The app is signed without them: “The app is installed without the capabilities left out, so features that need them won’t work.” |
| Capabilities Checked When Signing | AirBuild can’t tell yet; signing decides. |
| Capabilities Kept | The app keeps them. |
Under Identifiers, each part of the app says which profile signs it: Its Own Profile (its App ID on your team) or Wildcard Profile (“The wildcard profile signs an identifier your Apple team has no App ID for. Nothing is registered for it.”).
A capability is left out when your Apple team’s App ID for the app doesn’t have it turned on, or when your team has no App ID for the app at all and it’s signed with the wildcard profile, which carries no capability but Keychain Sharing. Ask the Agents to register the app’s App ID with the capability, build again, and install the new build.
With a free Apple ID
Installing with Personal Account on a Mac keeps App Groups and Keychain Sharing and leaves the other capabilities out, iCloud among them. To try those, install with your Team’s developer account or through TestFlight. See Install with a free Apple ID (Mac).
Questions
The app installed, but iCloud doesn't work.
Do I have to make a new provisioning profile?
Can I turn a capability on myself in AirBuild?
asc command; see asc: signing, devices and users.