Setting an Entitlements file - The executable was signed with invalid entitlements

Deadly 提交于 2019-12-08 08:50:30

First of all, you need to have specific provisioning for your App's ID, matching its bundle ID. Even if it's only for development, generic Team Provisioning cannot work to test iCloud.

If the App ID had been issued without iCloud enabled, and updated afterward, related Provisioning must be updated also.

Often, provisioning updating from Xcode's organizer fails to bring the right one. In this case, I suggest you to try to download updated provisioning directly from iOS Developer Website.

In my case, I have added inter-app capability in my iOS project and Xcode automatically suggested to add this permission in the app id (bundle id) in the provisioning portal and I did so. After this I thought it was fixed since Xcode was showing tick marks for all under inter-app audio sections as follows

  1. Add the "Inter-App-Audio" entitlement to your APP ID
  2. Add the "Inter-App-Audio" entitlement to your entitlements file
  3. Link AudioToolbox.framework.

Actually it was not fixed and I had to generate another distribution certificate with inter-app enabled and only when I signed with that distribution certificate I was able to install the app.

You Need to have Developer Certificate And Private Key in your keychain And Provision profile that have created must match with this Certificate.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!