Xcode shows warning after adding App Groups (Add the “App Groups” entitlement to your App ID) [closed]

痞子三分冷 提交于 2019-12-03 14:29:25

问题


After I added an App Group in Xcode it shows a warning:

Add the "App Groups" entitlement to your App ID
Add the "App Groups containers" entitlement to your App ID

Before the warning there was a loading spinner like this:

after it finished the loading I got the following warnings:

What can I do to correct the two wrong steps? If I'm right it is already added to my App ID.


回答1:


I faced the same issue, and in my case my apple id did not have the permission to add the "App Group".

If your account's type is "Member", not "Agent", then you need your Agent/Admin who has the main development account to add the "App Group" for you.




回答2:


For me, what worked was I had to changed the Bundle Identifier because I was working with a project template I had downloaded from the internet.

You can change that in:

Project Navigator -> Target -> <Your target> -> General tab

After that, I checked the App Groups and the warnings had gone




回答3:


For me, what worked was having the phone attached. Once I attached it, Xcode was able to finish the process and the two red check mark problems were resolved.




回答4:


You can try this steps:

  1. Find your App Id and make sure your App Group state is Enabled.

  2. Use your App Id to create Provisioning Profiles and download to your computer then double click it

  3. Check Xcode's Identity to make sure your team is the right one. If you have problems, click fix issue




回答5:


My problem was not having the App Groups set up correctly on all my App IDs on the Developer Portal. Therefor the App Groups in the app didn't work correctly.




回答6:


You can just go to here and press fix issue to add your app ID, Bundle identifier and code signing first to your Developer ID



来源:https://stackoverflow.com/questions/27146966/xcode-shows-warning-after-adding-app-groups-add-the-app-groups-entitlement-to

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