- the preferred way to code sign apps during both development and distribution
Set the project
Set the Provisioning Profile build setting to Automatic for all build configurations.
Set the Code Signing Identity build setting:Set to iOS Developer for all build configurations in iOS projects
Set the target
Set the Target > General > Team to None.
Change the Provisioning Profile build setting to Automatic for all build configurations.
Set the Code Signing Identity build setting:Set to iOS Developer for all build configurations in iOS targets
Return to the Target > General tab for all of your app’s targets and set the Team using these steps:Set the Target > General > Team to your team.