is automatically signed, but provisioning profile has been manually specified. Set the provisioning

错误提示

Xcode10证书错误
XXX is automatically signed, but provisioning profile YYY 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.
其中XXX是项目名称,YYY是一串字符。

产生的过程

上周Xcode10发布,更新了Xcode10,昨天是中秋节,同样的代码,就提示这个错误。

解决方法

1)删除如图所示的 Entitlements。
is automatically signed, but provisioning profile has been manually specified. Set the provisioning_第1张图片

2)打开"项目名.xcodeproj"然后右键显示包内容,打开:project.pbxproj 搜索YYYYY这个数字(错误原因的这一串字符),删除之,即可(这个数字在引号中间,不要删除引号及引号外的字符。)

你可能感兴趣的:(iOS)