Build, run & install

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

Ask for the capability

  1. Open the project’s chat.
  2. Say what the feature should do. Name the capability if you know it.
  3. Send it. The Agents add the capability to the app, turn it on for the app’s App ID, and build the app again.
  4. 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.

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.

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.
Check how it was installed. A free Apple ID leaves iCloud out, and so does an install the sheet marks under Capabilities Left Out. Install with the developer account or through TestFlight. In Preview, iCloud starts turned off.
Do I have to make a new provisioning profile?
No. AirBuild issues a new profile with the next signed build after the App ID changes.
Can I turn a capability on myself in AirBuild?
No. AirBuild has no switch for capabilities. Ask your Agents in the project’s chat. They use the asc command; see asc: signing, devices and users.
Can I turn a capability off again?
Yes. Ask the Agents to remove it from the app and the App ID, then build again.