Code signing is required for product type 'App

2019-01-01 11:29发布

I am facing the below issue and am unable to build the application.

XXX has conflicting provisioning settings. XXX is automatically provisioned, but provisioning profile WildCard has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual provisioning in the target editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0'

I am also unable to choose a particular profile.

Enter image description here

How to resolve this issue?

标签: ios xcode
27条回答
爱死公子算了
2楼-- · 2019-01-01 12:01

This is how it worked for me:

  1. Kill Xcode and launch again
  2. Open project again
  3. Clean Project
  4. Go to project settings > general > uncheck 'automatically managed profiles' and than 'check' again it will prompt for enable.
  5. Now try archiving the source code

P.S Killing Xcode and launch again is the best thing to do if facing any random issue

查看更多
裙下三千臣
3楼-- · 2019-01-01 12:02

I only needed to uncheck 'Automatically manage signing', check it again, and rebuild.

查看更多
妖精总统
4楼-- · 2019-01-01 12:03

In unit test target

Xcode 7:

  • Must have provisioning profiles set (the same as in app target)
  • Must have "don't sign" under certificates

Xcode 8:

  • Must have 'None' set for provisioning profiles
  • Must have certificates set (the same as in app target)
  • (Must also have 'None' set for deprecated provisioning profiles)
查看更多
笑指拈花
5楼-- · 2019-01-01 12:05

I upgraded to Xcode 8, and iOS 10, but I had the problem.

I fixed it by going to project general tab, signing section.

Click "Enable signing....."

That is it.

查看更多
谁念西风独自凉
6楼-- · 2019-01-01 12:06

I did everything and didn't worked. I uninstalled Xcode 10 and installed Xcode 9.4 then it worked out of the box !

查看更多
余欢
7楼-- · 2019-01-01 12:08

After applying all the solutions above, The same issue I was getting. i.e enter image description here

So I solved this by removing the provision profile in build sending. Please find the images which will make you more clear

My Signing details in build setting

I removed the provision profile

查看更多
登录 后发表回答