Today, i’ve had this one:

“Code Sign error: Provisioning profile ‘xxxxx’ specifies the Application Identifier ‘com.xxxxx.*’ which doesn’t match the current setting ‘(null)’”

So why does it say it doesn’t match (null)? That seemed a bit strange. It took me a few minutes to find the answer, which is simple: in the target’s Build properties make sure that “Info.plist File” is set correctly. In my case, there was a path included which had changed, so Xcode couldn’t find the Info.plist file anymore. Simply removing the path so that only “Info.plist” was left fixed the problem for me.