- You need to be an organization owner or admin. A member sees “An organization owner or admin must connect Apple and authorize the upload.”
- You need a saved Newly cloud project, used from a Remote chat. Otherwise the card shows “Publishing requires a saved Newly cloud project.”
- You need an active Apple Developer Program membership.
Option 1: Sign in with your Apple ID
This is the default, and the quickest way to connect.Sign in to Apple
Enter the verification code
Choose your Apple team
Choose the app
- an app name of up to 30 characters
- a bundle ID, such as
com.yourcompany.yourapp
Connect
What Newly creates in your Apple account
When you connect with your Apple ID, Newly sets up everything a TestFlight upload needs:- The app record in App Store Connect, if you chose Create a new app.
- An App Store Connect API key named “Newly” followed by your team or app name. It has the Admin role, so it can access every app in that Apple team. Newly creates it as soon as you sign in and it knows your team, and keeps it so later visits and your other projects need no password. If sign-in stops before Newly has stored it, Newly tries to delete the key.
- The bundle ID registration, if the bundle ID isn’t registered yet.
- The capabilities your app uses, turned on for that bundle ID when you publish, so it can be signed. Newly reads them from
ios.entitlementsinapp.json(HealthKit, NFC, Siri and the others Apple lets an API key turn on), and also turns on Push Notifications forexpo-notifications, Sign in with Apple forexpo-apple-authentication, and Associated Domains forios.associatedDomains. Newly never turns a capability off. If a build still fails because one is missing, the error names it and offers to turn it on and try again. App Groups, iCloud, Apple Pay and Data Protection need setup Newly can’t do for you, so turn those on for the bundle ID in the Apple Developer portal. - An App Store provisioning profile named “Newly app-store” followed by your bundle ID.
- A distribution certificate. Newly reuses it for all your organization’s apps in the same Apple team, so it doesn’t create a new one for every project.
Option 2: Use an App Store Connect API key
Choose this if you’d rather not sign in with your Apple ID, or your team manages its own keys.- In the card, press Use an API key instead.
- Fill in Bundle ID, Apple team ID, API key ID and Issuer ID. The team ID and key ID are each 10 uppercase letters or digits.
- Press Choose private key (.p8) and pick the key file you downloaded from App Store Connect.
- Press Connect App Store Connect.
- The app must already exist in App Store Connect with the same bundle ID. Newly doesn’t create it for you.
- The key needs permission to create signing certificates and provisioning profiles. Newly checks that the key works and can see your app when you connect. It only finds out whether the key can create certificates and profiles when a release runs, so a key without those permissions fails at that point.
.p8 file shows “Open the cloud publishing card in your browser to select a key.”, open the same chat in the web app at app.newly.app and connect from there. Apple ID sign-in doesn’t ask for a file.How your Apple details are stored
- Your Apple password and verification code are used only for that sign-in.
- The publishing key and signing details are encrypted and used only for publishing.
- None of it is shown to the agent or copied into your project’s code.
- The publishing key is kept under your Apple team, so your other projects connect to their app without signing in again. Creating a new app still needs an Apple ID sign-in, because Apple only allows that from a signed-in session.
Change the app, bundle ID or team
Open the Ship to TestFlight card for the project, press Manage beside your Apple team, then Change Apple settings. Then connect again with either option. The Deploy tab has the same Manage button. You can’t change Apple settings while a release is running. If you try, Newly shows “Wait for the current release before replacing Apple credentials.” Wait for the release to finish, then try again.Disconnect Apple
To stop a project publishing to Apple, press Manage beside your Apple team, then Disconnect, then Disconnect again to confirm. Newly deletes that project’s publishing key. Your other projects, the saved key for your Apple team and the team’s signing certificate stay as they are. To have Newly forget the saved key for your Apple team as well, start connecting a project, then press Forget beside the saved key. The next connection signs in to Apple again. Neither step revokes the key at Apple. To revoke it, open App Store Connect, go to Users and Access, then Integrations.Signing certificates
Apple allows a team 3 distribution certificates of each type (Apple Distribution and iOS Distribution). If your team is at the limit, the release fails and the card shows “Too many signing certificates” and how many your team has of each type. If Newly could not make a certificate for another reason, it shows “Signing needs attention”. Either way, the card lists your team’s distribution certificates straight away. Each row shows the certificate’s type, its Apple certificate ID (the one App Store Connect shows), when it was created, when it expires, and “Newly signs with this one” for the certificate your Newly organization uses. You have two ways to fix it.- Revoke a certificate
- Import an existing certificate
- Press Revoke on that certificate’s row.
- Read the warning and press Revoke again to confirm.
Connection errors
"Apple did not return a developer team for signing…"
"Apple did not return a developer team for signing…"
"Apple rejected the email or password."
"Apple rejected the email or password."
"Sign into your Apple Account in a browser and complete any pending account prompts, then retry here."
"Sign into your Apple Account in a browser and complete any pending account prompts, then retry here."
"Signed in, but Apple would not create the app."
"Signed in, but Apple would not create the app."
"Signed in, but Apple has not accepted the new publishing key yet."
"Signed in, but Apple has not accepted the new publishing key yet."
"Apple could not register that bundle ID."
"Apple could not register that bundle ID."
com.company.app. If the app already exists in App Store Connect under your team, pick it from the list instead of creating it."Create this app in App Store Connect first, using the same bundle ID."
"Create this app in App Store Connect first, using the same bundle ID."