Question: I'm getting this error with code signing with Xcode 8:

> 
> Your account does not have sufficient permissions to modify containers
> 
> 
> 

[![enter image description here](https://i.stack.imgur.com/9nx1E.png)](https://i.stack.imgur.com/9nx1E.png)

What does it want from me?

Answer: 
I was having the same problem too after I added a new device with Xcode 8.3.3 (same issue present in Xcode beta 9.0 as well). My Apple Developer account wasn't an administrator at the time either. I tried deleting my provisioning profiles and re-downloading them but that didn't work. I tried manually downloading and installing the provisioning profiles from developer.apple.com, but that didn't work either. I had my Apple Developer account made an Administrator following advice from dchappelle `https://stackoverflow.com/a/43812123/5760384` and voila! The provisioning errors went away. (I'd reply to his post, but I don't have enough reputation.)

Full text of error:

> 
> Your account does not have sufficient permissions to modify
>  containers. Provisioning profile "myApp" doesn't include the currently
>  selected device "myDevice". Code signing is required for product type
>  'Application' in SDK 10.3
> 
> 
>
I had the same issue using Xcode 9.3
Solution:

```
1 - Deselect "Automatic manage signing"
2 - Created a Provisioning profile for dev and dist and added in Keychain.
3 - Again when you come back to Sighing (debug and release) you can see your created provisioning profile in a dropdown 
4 - Crate archive by selecting "Generic iOS devices" in the project schema

```