Term · Bundle ID (bundle identifier)
A bundle ID is an app's unique name within Apple's ecosystem, conventionally written in reverse-domain style, for example com.example.myapp. Every target in an Xcode project needs one, and in the developer account it corresponds to an App ID record. There are two kinds of App ID: an explicit one matches a single app, while a wildcard one can match a group of apps, but capabilities such as push notifications and in-app purchase require an explicit App ID. Provisioning profiles find the app through its App ID, and you also pick it when you create a new app in App Store Connect. Once a bundle ID has been used for an uploaded build it generally cannot be changed; the exact rules are in Apple Developer Help.
How it relates to renting a remote Mac
The concept itself has little to do with whether you rent a Mac: it is just a string, and registering an App ID in the developer account or creating an app in App Store Connect are both done in a web browser on any computer.
You run into it when you take a cross-platform project written on Windows or Linux and build it on macOS for the first time:
- The iOS project generated by the framework usually ships with a sample identifier that you need to change in Xcode to the one you registered.
- If the app has extensions besides the main app (a notification extension, widgets and so on), each target has its own bundle ID and each one needs checking.
- When you see "no matching provisioning profile found", first compare the spelling in three places: the project, the App ID in your account, and the provisioning profile. Upper and lower case count.
On a remote Mac all of this is a matter of opening Xcode and looking. A bundle ID leaves nothing on the machine that you need to take away or revoke. For the registration steps see Apple Developer Help: Register an App ID.
FAQ
Can I put in any bundle ID for now and change it before release?
While you are only debugging locally, yes. But once you have created the app record in App Store Connect and uploaded a build, the app is tied to that ID, and the only way to switch is to create a new app. Settle on it before you register it in your account.
Wildcard App IDs are less work. Why not use them for everything?
A wildcard App ID suits debugging a batch of small apps that need no special capabilities. Push notifications, in-app purchase and similar capabilities require an explicit App ID, and apps that go on the App Store normally use an explicit one too.
Related
- What is a provisioning profile?
- What is App Store Connect, and is it the same as the developer account site?
- How do I sign an iOS app and upload it to the App Store from a remote Mac?
- How do I build an iOS ipa for a Flutter app developed on Windows?
- What is CocoaPods, and do I still need to install it?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support