The executable was signed with invalid entitlements after Xcode 7.2 update - ios

Today I updated Xcode to version 7.2. When I opened Xcode after the update to do some enhancements to my app, I got build errors about the name of the app, which has an underscore in it (com.company.my_app). So I changed to bundle identifier to com.company.myapp (just removed the '_'). I've tried to rename all the My_app instances to the name without the underscore.
Now, every time I build the app it works, the build succeeds. But when it has to run the app on the iPhone (which I've previously used), it gives the error The executable was signed with invalid entitlements. I've checked the build settings with the provisioning profiles and entitlements and this is the list:
Code Signing
Setting: My_app
Code Signing Identity: iOS Developer
Debug: iOS Developer
Any iOS SDK: iOS Developer
Release: iOS Developer
Any iOS SDK: iOS Developer
Provisioning Profile: Automatic
Debug: Automatic
Release: Automatic
Changing the Code Signing Identity values to anything else I can choose from the menu (I get my own account with my email address, which is the correct one), it gives the following error:
Failed to code sign "Myapp"
Your build settings specify a provisioning profile with the UUID “ca8f55bc-aa78-445a-aa45-a6a69ff552f7”, however, no such provisioning profile was found.
Xcode can attempt to fix this issue. This will reset your code signing and provisioning settings to recommended values and resolve issues with signing identities and provisioning profiles.
It then shows a dialog asking me to fix these issues, but when I do that (selecting my profile) it just resets the values back to iOS Developer and the Provisioning Profile settings back to automatic. When I try to run the app, it just gives me the same error about the executable being signed with invalid entitlements.
How do I fix this? I just can't install this app on my iPhone and in the simulator it gets stuck at the splash screen. It was working perfectly well before the Xcode 7.2 update.

Your bundle identifier is linked to your provisioning profile when you changed it there is now no provisioning profile for your app.

Related

Flutter XCode wrong Signing Certificate

I just started my app today but it failed with:
Building a deployable iOS app requires a selected Development Team with a
Provisioning Profile. Please ensure that a Development Team is selected by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
...
I checked my XCode and I saw that:
On the bottom you can see that my Identifier starts with SX9. But that is wrong or at least diffrent to my Apple Developer Profile Certificate on the Apple Developer site:
As you can see it starts with SN2.
My Flutter App also has the other ID:
DEVELOPMENT_TEAM = SN2...
How come that my Signing Certificate changed in my XCode and how can I revert that?

"No installed provisioning profiles match the installed iOS signing identities." when running on simulator

Allo
I am trying to use the iOS Keychain in Xamarin but I was getting Error 34018. After some googling I added Entitlements.plist and added that to the custom entitlements in iOS Bundle Signing in the project properties but now I'm getting the "No installed provisioning profiles match the installed iOS signing identities." error. I am trying to run the app in the simulator and I thought running in a simulator didn't require a provisioning profile. Why does adding Entitlements.plist cause this error and how can I get past it?
Thanks!
Using any type of iOS capabilities (an iOS app service) requires a iOS provisioning profile and that is totally independent on if you are targeting a physical iDevice or the iOS simulator.
To use capabilities, the app must have a valid provisioning profile that contains an App ID with the correct service enabled
Thus to use the Keychain, an iOS app service, you have to have a valid provisioning profile. A free provisioning profile can be used, but you must register your app's Bundle Identifier via Xcode with a physical device attached so you can then in turn assign the appropriate values in your Entitlements.plist and build the app with Xamarin using that provisioning profile. You can then debug the app on a physical device or the simulator.
iOS Free Provisioning

Code signing error in Xcode 8

I want to run my app on my device instead of on the simulator, but every time I try to run it, I get a code signing error:
'AppName' requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
I added a provisioning profile to the build settings under 'Code signing' but I still keep getting this error. Is there something wrong with my provisioning profile or am I looking in the wrong place? By the way, I used this provisioning profile on the previous version of Xcode and never ran into any problems.
To fix it, I set > TARGETS > General tab > Signing > Automatically manage signing = CHECK MARK
I had a similar problem and it was because my iPhone Developer certificate had expired. You can check this with the Keychain Access app in Utilities.

Code signing broken on Xcode 5.1 + iOS 7.1

Seems Apple has broken provisioning profiles in Xcode 5.1 ??
Upgraded to Xcode 5.1
Plugged in a device that wasn't registered on Dev Center
Asked Xcode to auto-add it
Result:
Developer Provisioning Profile is now corrupt in Xcode5
The following had no effect:
Restarting Xcode
Deleting profile and re-downloading within Xcode
Check that certificate is valid
Re-building with other profiles for same account/project (i.e. Distribution profiles) that had NOT been changed (works fine)
NOTE: in iPhone Configuration Utility, the profiles shows up as valid with all the registered devices. In Xcode5.1 I get:
Code Sign error: No codesigning identities found: No codesigning
identities (i.e. certificate and private key pairs) that match the
provisioning profile specified in your build settings (“iOS Team
Provisioning Profile: com.irisconnect.betairisconnect”) were found.
Solution: it's Xcode 5.1 that is broken, with a major bug.
If you allow Xcode5 to download provisioning profiles, it now internally corrupts any Developer profiles it downloaded.
If you instead:
quit Xcode
login to web version of Dev Center
manually download the profile
install using iPhone Configuration Utility
Re-start Xcode
...everything works fine.
Note: if you ever do the download within Xcode 5.1, then no amount of restarts will help you :(.
Thanks, Apple.
i had the same problem and was tearing my hair out. thanks to the answer above, i went and looked in keychain access and saw that my previous iPhone Developer certificates were listed as expired. so, i deleted these in keychain access.
then:
1) i went to the apple developer portal (https://developer.apple.com/account/ios/certificate/certificateList.action?type=development), clicked on the development certificate, and clicked download.
2) i dragged that certificate into keychain access (it's a login cert).
3) i went back to xcode, to the build settings code signing section of the project.
4) by hand, i set the provisioning profiles to my team provisioning profile.
5) i went up into the code signing identity section and by hand selected the new code signing identity.
and voila, it worked...my project built.
btw, i went through all that because i had made the fatal error the prior answer indicated, i.e. i had let xcode download a new certificate and then let it try to fix the code signing issue, and got caught in 1 infinite loop...just kept failing...
hope this helps
I got the same problem.
Here is my solution
Download Provision from https://developer.apple.com/account/ios/profile/profileList.action?type=production
You will get the file name "mobileprovision", change it to "YourAppName.mobileprovision"
Now Click open it with xCode
Archive and Submit your application again by Organizer
Here's what worked for me on Xcode 6, iOS 8.
Visit https://developer.apple.com/account/ios/profile/profileList.action?type=production
Revoked all certificates
Closed/restarted XCode.
Attempted to Build/Run again.
This time the Auto Fix process in XCode worked.

Code signing error after updating iOS

I have just updated to iOS 6.1 from 6, (i kept putting it off a while back) I have been developing on my iPhone and now close to publishing - but all of a sudden when I run it xCode gives this error:
I have checked and all my code signings are the same on the account and my phone is still authorised.
And here is the project file: Notice the MintfestProfile error:
Is there anything I can do to fix this?
Your Certificates and Provisioning Profiles have different exportation dates.
Update any expired Certificates or Provisioning Profile
Delete old profile in Xcode Organizer and Refresh (bottom right button)
Reselect profile in build setting.
Certificates
Provisioning Profiles

Resources