I've tried all the other questions and searched everything on this that I could already, a lot of the other questions involved existing apps that were being updated or people with developer accounts but this is like my second time using Xcode and it has worked before.
This just happened out of nowhere. I keep getting these two errors and it allows me to run simulators but not build onto my iPhone:
Automatic signing is unable to resolve an issue with the "LearningSpriteKit" target's entitlements. Automatic signing can't add the application-identifier and keychain-access-groups entitlements to your provisioning profile. Switch to manual signing and resolve the issue by downloading a matching provisioning profile from the developer website. Alternatively, to continue using automatic signing, remove these entitlements from your entitlements file and their associated functionality from your code.
Provisioning profile "iOS Team Provisioning Profile: #####.LearningSpriteKit" doesn't include the application-identifier and keychain-access-groups entitlements.
Here is a temporary workaround:
~/Library/MobileDevice/Provisioning Profiles
delete everything in this folder.You now should be able to build and run projects on simulators and devices.
Workaround: change Bundle Identifier and/or Version.
I am finally able to deploy to our iOS devices again. Here are the steps I took to make it work.
First, I followed all 10 steps in Zameer's answer here. I have copied them below:
After completing those 10 steps, the 2 red entitlement error messages in XCode went away and I was able to build and deploy the XCode test app to the iPhone and run it.
Although that XCode test app could build and deploy, I develop on a PC using Xamarin and I was unable to deploy my Xamarin.iOS application to my iOS devices and kept getting an error in Visual Studio:
the executable was signed with invalid entitlements
. I did the following things and now I can deploy my Xamarin app and run it on my iOS devices:~/Library/MobileDevice/Provisioning Profiles
directory. XCode immediately generated a new provisioining profile (I'm not sure if this step was necessary but I'm just writing it because that's what I did).Xamarin.iOS.csproj
file and removedEntitlements.plist
from theCodesignEntitlements
element so it now just looks like<CodesignEntitlements></CodesignEntitlements>
. Visual Studio automatically added two elements to the same propertygroup in the project which are probably not necessary but I thought I'd mention:<CodesignExtraArgs />
and<CodesignResourceRules />
.