I’m just trying to learn this stuff myself and ran into this issue this past weekend. I do know that the Bundle Identifier needs to be in the form of com.urlname.projectname which you have to designate when registering the App ID. The name that is listed in Bundle ID needs to be the same in both places. That solved my issue.