How to remove a container from an Xcode managed profile

I am using Xcode to manage the profile of a simple test app. I created the project and enabled CloudKit, but wanted to use another container that had the data record structure that I wanted. Xcode's default when you enable CloudKit is to use the default container. I then clicked on 'specify custom containers' and added the container I wanted and deselected the default container.

When I ran the app, I got an error message about how the default container doesn't have the record structure. I looked at the profile and the default container is still in the profile along with the specific container that I really wanted. I don't want the default container in the profile. That refresh circle below the container list didn't do the trick. The only way I could get this to work, was to go to the portal and edit the Xcode managed App ID, create a development profile which used that app id and use that instead of the Xcode managed profile.

Replies

>I then clicked on 'specify custom containers' and added the container I wanted and deselected the default container. -- refresh circle below the container list didn't do the trick.


Next time, try following up on that process by using Xcode's Product menu w/the option presses, selecting to 'clean build folder'.