gray text cannot be changed because it uses the version of the name of your project with the rfc1034 identifier package
if you look at the target information, you will see that the packet identifier is as follows.
com.company.${PRODUCT_NAME:rfc1034identifier}
project name is the value next to the icon in the Goals section of the project properties editor.
You can change the name of the target by clicking the name when it is already selected. or select it and press enter.
Changing the target name will change the gray value in your Bundle ID.
Sometimes your provisioning file does not include the entire UDID that it should use.
You can try to make sure they are selected on the itunes connect portal. then download a new copy.
You can also try connecting the ios device to xcode and setting it up for development in "Organizer"
if it does not work. you can delete all security files from your xcode and from the hard drive on which they are stored and download them from xcode.
Sometimes it's temperamental
source share