Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to compile for iOS 10 after Sierra Update

I have a certificate & provisioning profile generated this August. They are both valid (unexpired) in the Apple Developer Portal.

When I open my project, which targets 8.3, I get this error:

No certificate matching 'iPhone Developer: My Name (###ABC123)' for team 'Company.'
Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning.
  • I can see the private key nested under my certificate in Keychain.
  • In my Project settings, I click on my target and see my provisioning profile.
  • Under Signing Certificate, I see None.

At first I saw an error for "This provisioning profile does not have Wireless Accessory Configuration", which I don't need. When I unselected & reselected the provisioning profile, this error went away.

like image 573
quantumpotato Avatar asked Nov 06 '16 17:11

quantumpotato


2 Answers

I've had many similar issues, where the developer portal displayed valid certificates/profiles, and Xcode refused to sign.

Finally found something that seems to do the trick every time I come across it:

• Open the Certificates, Identifiers & Profiles page on the online developer portal
• Go to the Provisioning Profiles -> All tab
• Select the profile you are trying to build for and click on Edit
• Select the certificate you have on your machine, and click 'Generate'
• Download the profile and drag in onto the Xcode icon in your dock
• Clean and rebuild your project

I don't know if this is the golden fix, or just happens to work in my situation... but worth giving this a shot for sure.

like image 63
Jordan Smith Avatar answered Sep 20 '22 15:09

Jordan Smith


I had a different compiling problem after upgrading; what helped me out a lot was someone pointing out that macOS El Capitan 10.11.1 and Sierra 10.12.1 put restrictions on root. I rebooted my computer in recovery mode (command+R), then from utilities -> terminal I typed

csrutil disable

then restarting the computer normally, I made sure that Xcode was installed properly using a download from the apple developer website and reinstalled programs relevant to me. Maybe this will help you?

like image 31
chia Avatar answered Sep 19 '22 15:09

chia