有的时候我们系统升级、Xcode的升级或者证书变化的时候就会出现下面的问题
XXX is automatically signed, but provisioning profile xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
出现这个问题怎么办呢?首先我们打开工程选择找到下面这个
然后右键,找到包内容,然后选择project.pbxproj双击打开即可
然后找到下面这个
一共能找到四个,但是只要输入框里面的,然后将其" "号中的内容清空,但是引号不要去掉,效果如下图
然后保存即可
完成上面的内容以后,将程序退出,重新运行即可,这样就解决了问题