Search code examples
iosxcodeapp-store-connect

How to set provisioning profile when making new target


I have created my first ever iOS app. I am basically an android developer. and I know how to do things in android like the one I am trying to do in iOS

Right now I have made one app and I want to change a little and deliver it to my another client. For this I have to change only 4 things

  • URL
  • APP NAME
  • BUNDLE ID
  • SOME PASSWORD STRINGS

now as I have created a new target by following this tutorial, I have seen the red mark on provisioning profile. It says "NAME_MY_PROVISIONING PROFILE" has app ID com.mypreviousclient.bundle.identifier which does not match the bundle id of my new client

It clearly tells that the bundle id I just created is not inside my provisioning profile.

But I really do not know what to do now? What should I do now?


Solution

  • For changing bundle id in xcode for new app. You have to also create that bundle id in apple developer console. Here are the steps.

    1. create bundle id in apple developer console.
    2. Now you can create application in itune.
    3. create certificates.
    4. create provisioning profiles.
    5. set them into xcode and run.

    Happy coding.