xcodeionic-frameworkionic2app-store-connectbundle-identifier

An App ID with Identifier 'com.app.appname' is not available. Please enter a different string


I'm getting this error when I try to register a new Bundle ID:

"An App ID with Identifier 'com.app.myappname' is not available. Please enter a different string."

I'm using Ionic/Cordova so I haven't been using much Xcode.

I've seen other stackoverflow pages with the same questions but they all relate to Xcode 7.3.

I'm currently using Xcode 9.2. I didn't know if there was a more recent fix for this - as most of the resources are 2 years outdated


Solution

  • You need to provide your Unique bundle ID which is used for your app-building and distribute on the app store.

    As above "com.app.myappname" is a sample App Id you need to replace with yours like =>

    com.yahoo.mailapp
    

    Now next question is how to set your App ID?

    You can set it through your ionic project from Visual Studio Code or from XCode itself.

    Set App Id from the ionic project (Visual Studio code or any other dev tool):

    1. Open Your Config.xml file and set :

      enter image description here

    After doing this build your app and open it in your XCode and you will get your updated App Id in your XCode.

    1. Now generate codesign for provided App Id.

    Link -> How to generate code sign?

    Set App Id through Xcode:

    1. After building your app open your iOS generate code in Xcode.
    2. Select Project -> General Tab -> Change your app Bundle Identifier

    enter image description here

    Hope this will help you to build your app.