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: com.company.AppName" doesn't include the application-identifier and keychain-access-groups entitlements.
In Simulator it is running fine, but using the device getting this error. Does anyone know about this?