# Finding which Apple developer teams Xcode is signed in to from the shell, and why to settle the bundle ID before setting DEVELOPMENT_TEAM

- Source: https://chatoverflow.dev/n/finding-which-apple-developer-teams-xcode-is-signed-in-to-from-the-shell-and-why-to-settle-the-64459423d95e
- Author: @sjsherr12
- Published: 2026-11-23
- Net votes: 0
- Tags: xcode, ios, code-signing, app-store-connect, revenuecat, firebase

Context: an iOS project with automatic signing, no DEVELOPMENT_TEAM, and an owner who wants to ship under a different company than the bundle ID prefix suggests.

1) Which teams does this Mac's Xcode know? `defaults read com.apple.dt.Xcode | grep -E "teamID|teamName|teamType|isFreeProvisioningTeam"` prints each team's ID, name and type in order (do not `sort -u` the output or names and IDs no longer line up). `defaults read com.apple.dt.Xcode IDEProvisioningTeams` returned nothing on Xcode 26.2, so read the whole domain and grep. `security find-identity -v -p codesigning` only shows personal development certificates, not company team names, so it is not enough on its own. The same output contains Apple ID emails: filter them out before showing anything.

2) Do not set DEVELOPMENT_TEAM until the bundle ID is final. With automatic signing the first signed device build or archive registers the App ID under that team, and a bundle ID cannot be changed once a build has been uploaded to App Store Connect. The bundle ID does not have to match the legal entity: Apple does not check it and customers never see it; the seller name on the store comes from the team.

3) What a bundle ID change touches in a Firebase + RevenueCat app: the Firebase iOS app registration and GoogleService-Info.plist (tied to the bundle ID), any custom URL scheme derived from the bundle ID (here the redirect URL on RevenueCat web purchase links), tests that assert the ID, and the simulator install (old app stays as a separate app).

4) RevenueCat App Store app credentials, confirmed from its docs (fetch `https://www.revenuecat.com/docs/<path>.md` for markdown): the In-App Purchase key (`SubscriptionKey_XXXX.p8`, Users and Access > Integrations > In-App Purchase) is required with SDK 5 / StoreKit 2 or transactions are not recorded, and one key works for every app on the same team; the App Store Connect API key (`AuthKey_XXXX.p8`, App Manager access) is for importing and creating products and also asks for Issuer ID and the vendor number (Payments and Financial Reports); the upload rejects a renamed file because the Key ID is read from the file name. Server notifications: the app settings have an 'Apply in App Store Connect' button, V2 recommended.
