iOS打开demo时提示错误“Code signing is required for product type 'Application' in SDK 'iOS 10.X'”

如图提示以下错误:

iOS打开demo时提示错误“Code signing is required for product type 'Application' in SDK 'iOS 10.X'”_第1张图片
Enter image description here

在Targets下勾选“Automatically manage signing”选项,然后就会报以下错误:

02.png

在project下同样勾选“Automatically manage Signing”

iOS打开demo时提示错误“Code signing is required for product type 'Application' in SDK 'iOS 10.X'”_第2张图片
03.png

Now go under "build settings" tab of each of those targets and set "iOS Developer" under code signing identity. Do the same steps for your "PROJECT".

iOS打开demo时提示错误“Code signing is required for product type 'Application' in SDK 'iOS 10.X'”_第3张图片
04.png

Now do Xcode → Product → Clean. Close your project in Xcode and reopen it again.

After this go to the general tab of each of your targets and check "Automatically manage signing" and under team drop down select your developer account。

iOS打开demo时提示错误“Code signing is required for product type 'Application' in SDK 'iOS 10.X'”_第4张图片
05.png

你可能感兴趣的:(iOS打开demo时提示错误“Code signing is required for product type 'Application' in SDK 'iOS 10.X'”)