I get conflicting provisioning settings error when I try to archive to submit an iOS app

后端 未结 30 1280
误落风尘
误落风尘 2020-11-29 14:48

Now I\'m trying to Product>Archive my iOS app to submit. However, I am getting following errors:

AppName has conflicting provisioning settings. AppNam

相关标签:
30条回答
  • 2020-11-29 15:29

    I was struggles long time, I tried all proposed solutions. Nothing work for me.

    Then I found the issue: there was a "User Defined Settings" for "PROVISIONING_PROFILE" at the end of Build Settings tab. I delete it for both Project and Target build settings. Then Automatic signing worked perfect.

    I hope this will help somebody else. :)

    0 讨论(0)
  • 2020-11-29 15:30

    You are way over-thinking this. The process is vastly improved and extremely easy in Xcode 8. Take advantage of that fact.

    Step One: Do not, in any way, shape, or form, attempt to set the Code Signing settings in the Build Settings. Don't go near them. You will absolutely mess this up. Instead, edit the target and do all the work in the General pane. Best approach: set yourself up for automatic code signing - just enter your Team and check the checkbox, like this:

    Step Two: Make sure you have an iOS Distribution Identity (Certificate). You can check this under Xcode Preferences > Accounts, View Details. It would also be a good idea at this time to go to the member center and get yourself an App Store mobile provision for this app, and download and install it.

    Step Three: Choose "Generic iOS Device" as your Destination, and choose Product > Archive. The app will be compiled, the archive is created, and you are now ready to submit to the App Store.

    0 讨论(0)
  • 2020-11-29 15:31

    I had the same problem, I noticed that If you want to make a release of your iOs app and publish it on the App Store you don't need at all to put in the "Code Signing Identity" as release, just keep it as iOs developer.

    Go to Your project -> Build Settings -> Code Signing Identity and put everything to iOs developer.

    0 讨论(0)
  • 2020-11-29 15:31

    The only solution worked for me:

    1. Close Xcode project
    2. Using finder go to project folder
    3. Right click on .xcodeproj and choose "Show Package Contents"
    4. Right click on project.pbxproj go on "Open With" and choose TextEdit
    5. Now search for your Provision Profile instanceId specified in the error message.
    6. Delete all found texts and let Provisioning Profiles clean.
    7. Save & Close
    8. Open Xcode
    9. Enable automatically manage signing

    Enjoy! Hope it will be useful!

    0 讨论(0)
  • 2020-11-29 15:32

    Try either of the following

    1.Removing and adding ios platform and rebuild the project for ios

    ionic cordova platform rm ios
    ionic cordova platform add ios
    ionic cordova build ios --release
    

    2.Changing the Xcode Build Setting

    The solution was to uncheck it, then check it again and reselect the Team. Xcode then fixed whatever was causing the issue on its own.

    3.Change the following code in platform

    This didn’t make any sense to me, since I had set the project to auto sign in xcode. Like you, the check and uncheck didn’t work. But then I read the last file path given and followed it. The file path is APP > Platforms > ios > Cordova > build-release.xconfig

    And in the file, iPhone Distribution is explicitly set for CODE_SIGN_IDENTITY.

    Change:

    CODE_SIGN_IDENTITY = iPhone Distribution
    CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
    

    To:

    CODE_SIGN_IDENTITY = iPhone Developer
    CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
    
    0 讨论(0)
  • 2020-11-29 15:33

    For those coming from Ionic or Cordova, you can try the following: Disconnect your ios devices from the computer before ios cordova build ios --release (seems to change the targeted device for xcode signing).

    0 讨论(0)
提交回复
热议问题