9

I created an app and sold it to a client. Fast forward 10 months, he asked me to do some work on the app which I did. Now I am trying to submit the app for him.

I have the "App Manager" role in iTunesConnect. The issue I am having is that when I try to Archive the app in Xcode I get the following issues:

Failed to create provisioning profile. The app ID "com.xxxx.xxxx" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.

and

No profiles for 'com.xxxx.xxxx' were found. Xcode couldn't find a provisioning profile matching 'com.xxxx.xxxx'.

I've created provisioning profiles before but how would I go about creating this one? If I need the "App ID" to create it through https://developer.apple.com/, how would I recreate that? I deleted this app id when I sold it almost a year ago.

My train of thought is going like this right now: the client added me as an app manager and I can now see the app I am doing work on in itunesconnect.apple.com. How do I make this 'team' appear in Xcode in order to get the provisioning profile?

apolo
  • 441
  • 4
  • 18

4 Answers4

8

Right-now you are added as App-Manager to your client's iTunes-Account. This gives you right to do some management stuff on iTunes (upload build, submit, testflight, create app...), but nothing related to the Xcode side. That's why the Team and Role will never appears in your Xcode account. (You are not added yet!)

You need to be added to the Team of their Apple-Developper-Account with at least Team-Admin privileges to be able to do all aspects of development & distribution.

Team admins manage all assets used to sign your apps, either during development or when your team is ready to distribute an app.

Managing Your Developer Account Team

Also your client needs to be enrolled as organization to be able to add people.

If you have an organization membership in the Apple Developer Program, you can add people to your team and assign them roles, thereby granting them levels of access to team assets.

Also keep in mind that the switch from an individual Account to an organization is a time consuming process, and it's not straight forward. They need the organization to provide some administrative info about the company. I advise to not advise them to switch right now but after the release to iTunes.

The quick solution is to use their apple-id to build and release, or to have one of them do it for you.

Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
Idali
  • 1,023
  • 7
  • 10
  • Would my client need to be enrolled as an organization to be able to add team members to his team? If he isn't enrolled as an organization, how would I work around this? – apolo Dec 14 '16 at 13:10
  • Thanks for the info. Would there be an issue if they don't have the app id (dev center) under their apple id? As I mentioned before, I deleted the app id when the app was sold and I don't see how the client would have it being that I simply transferred ownership. – apolo Dec 15 '16 at 13:26
  • They can add the appId that much the current bundle of the app in (dev-center) and create provisioning profiles. keep in mind that apps are not only identified by appId but also by a Prefix that reflect the developper-account : [TeamID].com.company.myApp. So if you deleted the app-id after the transferts has been completed there will be no issue. However it will appears to have your old app-bundle but xcode will point to another account. – Idali Dec 15 '16 at 14:42
  • I suppose that they didn't change the bundle after/during transfert – Idali Dec 15 '16 at 14:52
3

I had the same issue a few months ago.

Failed to create provisioning profile. The app ID "com.xxxx.xxxx" 
cannot be registered to your development team. Change your 
bundle identifier to a unique string to try again.

The cause (for me) was that our company had a $99 Apple Developer account (so we could put our app on the App Store) and a $299 Apple Enterprise Account (so we could create and privately distribute in-house apps)

On the Apple Developer website, we had registered our com.MikesCompany.AppName ID whilst logged into our $99 Developer Account, as our goal was to sell it via the App Store.

But, of course, when we were developing and testing our app, using our Enterprise Account, Xcode stubbornly refused to let us use this App ID in a Provisioning Profile as it was "already in use".

There are many reasons I loathe Xcode (and looking at its rating in the Apple App Store, I'm far from being alone) and this whole code-signing stuff is one of the main reasons...

Year after year, it just doesn't get better (even the new "Automatic Code Signing" feature allows you to build versions which will blatantly never run on a device, and give you the hopeless and misleading "AppName cannot be installed at this time" message).

Anyway, the answer to your question... make sure that you are building your app using a member of the correct group where your App ID was created in.

Mike Gledhill
  • 27,846
  • 7
  • 149
  • 159
  • Thank you for your answer. My account (apple id) was the one used to create the app id. The issue is that I deleted the app id when I sold the app so I guess that is why it doesn't auto generate the provisioning profile. Help? – apolo Dec 13 '16 at 12:23
2

The way i got your question is you first need a valid dev suscribed account than check if any app id exists in your developer account(at developer.apple.com) with bundle identifier com.XXXXXX.XXXX (which you are getting in Xcode) if not than create one.

Go in provisional profiles tab(at developer.apple.com) and check if any profile exists which contains you that appId. if not than add it to any provisional profile with valid development certificates added to it for same app Id.

In you Xcode Go to Preferences>Accounts ( add your dev account if not added )> select personal team or team > download the provisional profile on which Download appears. Check if code-signing issue disappears in General Tab and in your Build setting you have selected valid provisional profile selected.

Jagdeep
  • 1,158
  • 11
  • 16
  • The issue with that is that I don't have the app id on developer.apple.com portal. I deleted when I sold the app 10 months ago. – apolo Dec 13 '16 at 12:21
0

Here's how I solved a very similar issue.

  1. The client needs to check the box 'Access to Certificates, Identifiers & Profiles' for your account in App Store Connect. This will allow you access to their developer.apple.com portal as well as allow you access to the Team profile inside of Xcode.
  2. Open Xcode > Preferences > Accounts select the account that your client added to their App Store Connect. You should see their Team name under the Team section. If you don't, something went wrong, ensure you added as a developer, that you accepted the invite, that you are logged into the correct account in Xcode, etc.
  3. In Xcode select your Project File > Target > Signing & Capabilities under team, do not select your personal team profile, select their team profile, this should be the name of their App Store Connect organization.

And that's it, the app should build, run, and you should be able to submit updates to their App Store Connect without issue.

Jared
  • 793
  • 6
  • 16