xcode iOS 应用组不再有效
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36517656/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iOS App Groups no longer working
提问by aelveon
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.
就在一年前,我注册了一个免费的 Apple 开发者帐户。一切顺利,我能够构建应用程序并在我的 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.
其中一个应用程序还有一个 Today 扩展,我创建了一个应用程序组来共享数据。我生成的配置文件已过期,我无法再在设备上部署应用程序。当然,它在模拟器上运行良好。
When I build, I get this error:
当我构建时,我收到此错误:
None of the valid provisioning profiles allowed the specified entitlements: com.apple.security.application-groups.
没有一个有效的配置文件允许指定的权利: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.
我打开过期的 .mobileprovision 文件,注意到在 Entitlements->com.apple.security.application-groups 下,组在那里,而在新文件中,数组是空的。最奇怪的部分是,该组以某种方式存在,因为它出现在 XCode 中,我可以选择它,但只是不在正确的位置,这可能就是我收到这些错误的原因。
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.
当我登录 developer.apple.com 时,我所做的任何事情都会将我重定向到购买会员资格以进行注册。
回答by Dirk
I had the same error message and solved it the following way:
我有相同的错误消息并通过以下方式解决它:
Open in Xcode Menu Xcode|Preferences
在 Xcode 菜单中打开 Xcode|Preferences
And select the "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.
选择您的 Apple-ID,然后按右下角的“查看详细信息”。在下面的弹出窗口中,您可以看到所有的配置文件。
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.
对于每个配置文件,您都可以看到“到期”日期。就我而言,iOS 团队配置文件已过期。似乎只有当您拥有免费的开发者帐户时,这些才有效一个月。
I renewed it by clicking "Download all". Afterwards I was able to successfully sideload again.
我通过单击“全部下载”对其进行了更新。之后我能够再次成功侧载。
Hope this helps ;-)
希望这可以帮助 ;-)
回答by orkoden
You need to create new provisioning profiles. For that you need a paid developer account. The Fix Issue
button is risky and often doesn't work or messes up your settings.
您需要创建新的配置文件。为此,您需要一个付费的开发者帐户。该Fix Issue
按钮有风险,通常不起作用或弄乱您的设置。