SOLVED. Please read to save yourself DAYS of time. DON’T TRUST APPLE AUTOMATIC PROVISION PROFILES!
I’ve been a Corona App developer for a couple of years, yet I’ve still just spent THREE DAYS dealing with some provisioning profiles that recently expired.
Long story short, here’s where I am now desperate for help.
-
I deleted ALL my provisioning profiles and certificates from developer.apple.com
-
My device, an iPhone 5 plus, has its UDID entered into developer.apple.com – this ID has previously worked allowing development builds to be copied to the device
-
I’ve completely reinstalled MAC OS X Mavericks from scratch without restoring anything from backups, so it’s a completely fresh install. I installed all the updates before doing anything else. Now I have a new fresh machine with nothing restored on it.
-
I installed a fresh copy of XCODE
-
I installed a fresh copy of CORONA - latest daily build 2014.2515
So the keychain is a fresh install of MAC OS X
-
I went into XCODE/Preferences/View Details, clicked +, and allowed it to create a new IOS Development Signing Identity. Looking at developer.apple.com, this caused a new provisioning profiles to be created automatically for each one of my Apps, complete with certificates - taking a look at the specific provisioning profile on developer.apple.com that I plan to use, I can see that it includes the 1 and only device I have listed in the devices on developer.apple.com
-
Inside the keychain, I can now see the Developer Private Key and Public Key, and the associated Development Certificate – there’s no other duplicates of these items in the keychain
-
I build my App with corona using the Development Provisioning Profile with the same id as the App I am building.
-
I go into X-Code devices, and right click on my device and choose “Show Provisioning Profiles” – There’s nothing there, so I download the development provisioning profile that corresponding with the App ID I just built from developer.apple.com, then I choose the + on this page, and install that profile to the device. (An iPhone 6 plus in this instance). Also, here on the devices page, the identifier that shows up with the device on this page matches the UDID number entered into devices on developer.apple.com
-
Then I drag the App I just built into the area under the text “Installed Apps” in the devices screen.
The message which I have been receiving consistently the last three days is:
The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile.
Before I completely wiped out Mavericks and installed it again, I tried every possible thing I could think of for three days, and now that I’m getting this same exact error with a fresh machine and fresh install of everything makes me wonder if I am simply missing an obvious step.
How crazy is it that it’s THIS difficult just to drag a new App from the computer to a device. And I’ve done this already hundreds of times!
PLEASE HELP!!!
Let’s summarize:
Fresh machine, fresh software, new keys, new certificates, new provisioning profile, matches device UDID, profile includes device with correct UDID, build App with this profile, install this profile on device, drag App to device, get this error message. “The executable was signed with invalid entitlements.”