Here is a shortcut for those who have tried the method of removing the certificate but still not working:
Find the project projectName.xcodeproj, click "open contents", edit "project.pbxproj" with the txt editor:
changes:
com.apple.Push = { enabled = 1; };
in
com.apple.Push = { enabled = 0; };
Repeat the assembly, and this time there is no error when clicking :)
source share