简体   繁体   中英

Permanently remove automatic provisioning profile managed by Xcode

A while ago, when I was refreshing (provisioning profiles in XCode, it kept bugging me to create a profile after every refresh.

After a few refreshes, I allowed it to create one. I assumed it would simply be a certificate signing request, but it instead created an iOS cert and provisioning profile.

However, the automatic addition of all listed devices makes it quite bad.

I have tried multiple ways to delete it, be it deleting the cert/provisioning profile from the Apple developer portal, and deleting the profile from Xcode, the .mobileprovision folder, and Keychain. None have worked; it disappears for a while, and then resurfaces.

How can I stop this profile from being generated and updated? It's conflicting with my CSR-generated profile, and causing codesign errors.

There was apparently an automatic provisioning option you could untick, but I can't find it. all devices automatically added to team provisioning profile?

Have a look on xcode build settings. You should only choose your team in general preferences tab. Then go to build settings tab and choose the right provisioning profile under "code signing" section. It should fix the issue, if it doesn't remove certificates from keychain and re-download/install the right certificate from developer center.

I was getting stumped by this too; I wanted to use my own provisioning profile because it was associated with an explicit App ID I needed to enable push notifications, but Apple kept on using a wildcard XC: com.myapp.* profile instead. Eventually the solution that worked for me was to use the developer portal to change the auto-generated profile to use my explicit App ID, then re-download and install. I never managed to remove the auto-generated profile, but I made it work for me and it solved my problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM