Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS App Groups no longer working

Just over a year ago I signed up for a free Apple developer account. All went well, I was able to build apps and deploy on my iPhone.

One of the apps also has an a Today extension and I created an app group to share data. The provisioning profiles I generated expired, and I can no longer deploy the app on device. It works fine on Simulator, of course.

When I build, I get this error:

None of the valid provisioning profiles allowed the specified entitlements: com.apple.security.application-groups.

If I click "Fix issue", I get this:

Communication with Apple failed

Your account does not have sufficient permissions to modify containers.

Going to Capabilities (both the app and the extension have the same issue), in App Groups, I see this error

Again, "Fix issue" doesn't do anything. Completely disabling App groups works, but I need this.

I opened the expired .mobileprovision files and noticed that under Entitlements->com.apple.security.application-groups, the group is there, while in the new files, the array is empty. And the most weird part is that somehow the group is there since it appears in XCode and I can select it, but just not in the right place, and this is probably why I get those errors.

I tried cleaning and building the project, deleting all provisioning files, certificates, I created a new project, I tried to create a new group but it didn't work (it just appeared in red), but I'm all out of options.

When I log in to developer.apple.com, anything I do redirects me to purchasing the membership for enrolment.

like image 567
aelveon Avatar asked Apr 09 '16 13:04

aelveon


1 Answers

I had the same error message and solved it the following way:

Open in Xcode Menu Xcode|Preferences

And select the "Accounts" Tab: "Accounts" Tab.

Select your Apple-ID and Press "View Details" in the lower right. In the following Popup you can see all your Provisioning Profiles.

And for each Profile you can see an "Expires" Date. In my case the iOS Team Provisioning Profile was expired. It seems that these are valid for one month only if you have a free developer account.

I renewed it by clicking "Download all". Afterwards I was able to successfully sideload again.

Hope this helps ;-)

like image 173
Dirk Avatar answered Oct 15 '22 13:10

Dirk