"Invalid Provisioning Profile... [Missing code-signing certificate.]" for brand new, Vanilla Mac App in OS X Mavericks - objective-c

In OS X Maverick's XCode, I created a brand new Mac > "Cocoa Application", with Core Data and Spotlight Importerl; about as vanilla a Cocoa application I could muster.
Under Preferences > Accounts, I signed in to my Mac Developer Account.
In Targets > Identity, I set Signing to "Mac App Store", and was able to select my Mac Developer Account for "Team".
I then went to Product > Clean, and then Product > Build for... > Running, and then Produt > Archive.
In the Organizer, I select the resulting .app and click "Validate", and hit the Mac App Store radio, and hit "Next", and it's able to log into my Mac Developer Account.
I select my Provisioning Profile in the dropdown, and click "Validate".
It comes back with several errors:
1 - "Invalid Provisioning Profile. The provisioning profile included in the bundle {BUNDLENAME} [{BUNDLENAME}.app] is invalid. [Missing code-signing certificate.] For more information, visit the Mac OS Developer Portal."
2 - "The bundle identifier cannot be changed from the current value, '{DIFFERENT-BUNDLE-FROM-OTHER-PROJECT}'. If you want to change your bundle identifier, you will need to create a new application in iTunes Connect.
3 - Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provision profile. The bundle contains a key that is not included in the provisioning profile: 'com.apple.applications-identifier' in '{BUNDLENAME}.app/Contents/MacOS/{BUNDLENAME}'
I was able to do the same process before, for a vanilla app, before Mavericks. I'm not sure if this is a Mavericks error, or a fact that now I have multiple app projects. Particularly odd is that DIFFERENT-BUNDLE-FROM-OTHER-PROJECT in error (2) is not the same bundle name as the current project's bundle.
Would love any help you can provide! Thank you!

Seems like this was a secret key missing or corruption issue. I ended up revoking the existing certificates and profiles I had in XCode > Preferences > Accounts, and issuing new ones.

You may need to set a provisional profile in the Build Settings section.
See here: Xcode 5: Code signing entitlement errors
and here: Weird code-signing error

Go to Apple Developer Portal, recreate the provisioning profile (distribution profile in your case) and download it again. Make sure that the Distribution certificate is installed in your Keychain Access in order to sign apps submitted for the App Store. and Recheck ur Bundule Id as well

You should try setting up a WildCard Provisioning Profile and go from there.

Related

How do you check if your signing identity is installed on another Mac? (Error: Your Account already has a valid iOS Distribution Certificate)

I have an error when trying to upload an app to TestFlight. It says I have a valid iOS certificate on developer website but that it is not installed locally
I did get a new MacBook recently and I think this might be causing my issue. How do I check if my singing identity is installed on another Mac and if so, how to I install it locally on my new MacBook?
Really lost here at the mo.
Here are the Steps for solving this issue :
Go to Xcode Prefrence and Remove all developer account
Clean And Build ( in Simulator ) and Restart Xcode .
Go To Apple Developer Account ( developer.apple.com)
Download Certificate , provisioning profile already created
After Downloading , click each one to add in Keychain
Now Again Go To XCode Preference -> Account and Add Apple Account
After Adding Apple Account , There is a button to Check View
Details
Go To view Details and just make sure everything is correct
Now Go to XCode and Set Automatically Managing Signing
10.And Run app on Device , if successful then Archive and Enjoy.
This way recently i solved one my friend issue and Hope it works for you also.
Feel free to comment . Thanks

Your account already has a signing certificate for this machine but it is not present in your keychain

I get this error, verbatim, when trying to build and install to a device.
This is my environment:
Xcode 8
El Capitan
Has anyone run into this problem? How did you solve it?
Thank you
Go to Xcode Preferences -> Accounts tab -> Double-click your team name -> Click the + at the bottom left of the dialog box that appears -> Select iOS Development.
This will create a new development certificate that will allow you to install and test on your device.
In my case problem was in revoked certificate.
To fix this problem:
Go to Xcode –> Preferences –> Accounts –> Select needed Apple ID –> Double-click your Team –> Check certificate with Status Revoked.
Go to Keychain Access –> Search for certificate was revoked –> Delete it.
I got this error immediately after a repair to replace the MagSafe module on my MacBook Pro (I am guessing the long period with the battery unplugged reset the SMC). I really didn't want to recreate the signing certificate so I went into the Keychain, realised I had so many expired keys still present and decided to delete the expired ones. I Go back to Xcode, clean the project and rebuild and boom...everything works fine. Hope this helps someone
go to your apple developer site and download the signing certificate. Once downloaded you should be able to click and it will auto do its thing and should be good after that

getting App Installation Failed - a valid provisioning profile is not available

I just upgraded to Xcode 8.
Started getting this error when i try to run my app on my iphone:
Things i have verified
My iphone is listed in the dev portal with the correct UDID
I have removed and re-added the provisioning profiles many times in xcode
Any ideas guys?
Do you have automatic code signing activated? What's the log output of the Sign step (see Report Navigator for a specific build)? Does the Sign step use your correct Signing Identity and Provisioning Profile? If not, you need to open the project's General Tab and either
activate Automatic Code Signing
(Check "Automatically Manage Signing")
or configure the Development Team and Provisioning Profile yourself

Xcode 6 Developer Account Issue

I am trying to upload a build on TestFlight and trying to pass by the step where I have to add developer account to the Xcode preferences. It's partly a good step but I don't like the mess, it creates with certificates and provisioning profiles. Any chance I can either bypass the developer account setup or the provisioning profiles.
Unfortunately there is no way to deploy your app to actual devices without creating certificates and provisioning profiles. This applies to both Development and Ad Hoc/Testflight distribution.
It's one of the necessary evils of iOS development.

Why I don't have any provisioning profiles in Devices menu of Xcode? How to fix this?

I'm in the process of learning iOS development and app submission process. Before trying to archive my application I only tested and debug it on iOS 6 simulator and now I want to deploy this application on real device. And during this I encountered with some problems.So, what steps I must implement in order to successfully archive my application and get an .app and then an .ipa file of it. How to setup provisioning profiles and solve code signing error?
You need to go to the provisioning portal at http://developer.apple.com and generate provisioning profiles for your applications there.
If you have not paid your developer license fee you will not be able to install your apps on real devices.
You will need to get a Developer and or Distribution certificate including their respective Private keys. You will also need a Team Provisioning Profile, or a Provisioning Profile specifically made for the app. You can either make all these yourself through the provisioning portal at http://developer.apple.com Or if you are working for someone else who has a developer program license, they could possibly provide you with all these.
The provisioning profile describes all the steps you need to take to implement the certificates and provisioning profiles so you can build and deploy / distribute your app.