Xcode 8 您的开发团队,不支持 iCloud 功能

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/45635797/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:10:55  来源:igfitidea点击:

Xcode 8 Your development team, does not support the iCloud capability

iosxcode

提问by user979331

Good Morning,

早上好,

I am having trouble with my iPad app this morning, I am trying to test it on a device and all of sudden I get this error message 'Your development team, "My Development Team", does not support the iCloud capability.'

今天早上我的 iPad 应用程序出现问题,我试图在设备上测试它,突然我收到此错误消息“您的开发团队,“我的开发团队”,不支持 iCloud 功能。

I read somewhere I can just turn on iCloud capabilities by going to Targets -> Capabilities -> Turn iCloud on, the problem is I don't see an iCloud capability.

我在某处读到我可以通过转到目标 -> 功能 -> 打开 iCloud 来打开 iCloud 功能,问题是我没有看到 iCloud 功能。

How can I add iCloud capability so I can run my app.

如何添加 iCloud 功能以便我可以运行我的应用程序。

This is in Xcode 8.3.1

这是在 Xcode 8.3.1

Please Help

请帮忙

Here is a screenshot of my capabilities, i dont have iCloud

这是我的功能截图,我没有 iCloud

enter image description here

在此处输入图片说明

采纳答案by DJ-Glock

I believe thisApple document will help you. If you have any questions, add a comment, I'll try to help you.

我相信这份Apple 文档会对您有所帮助。如果您有任何问题,请添加评论,我会尽力帮助您。

Also, please be aware that if you are creating application for iOS, you should have paid developer account for using CloudKit. According to thisdocument.

另外,请注意,如果您正在为 iOS 创建应用程序,您应该为使用 CloudKit 支付开发者帐户。根据这份文件。

回答by Ronald Hofmann

I got the same problem two years later.

两年后我遇到了同样的问题。

I think it came up because I started an iCloud testing in my project and didn′turn it off. Today I′m a developer without a paid account. And this probably caused this issue. iCloud capabilities are for paying developers only. And Apple obviously turns this feature off when you don′t want to continue paying. But Apple forgets to turn off a switch which is located in project.pbxproj.

我认为它的出现是因为我在我的项目中开始了 iCloud 测试并且没有关闭它。今天我是一个没有付费账号的开发者。这可能导致了这个问题。iCloud 功能仅适用于付费开发人员。当你不想继续付款时,Apple 显然会关闭此功能。但是 Apple 忘记关闭位于project.pbxproj 中的开关。

You can go to this file by right clicking your project file myProject.xcodeprojand choose view package. You can use any text editor to edit this file. At about line 686 it says:

您可以通过右键单击您的项目文件myProject.xcodeproj并选择查看包来转到此文件。您可以使用任何文本编辑器来编辑此文件。在大约第 686 行,它说:

SystemCapabilities = {
                        com.apple.iCloud = {
                            enabled = 1;

That means com.apple.iCloudis enabled.

这意味着com.apple.iCloud启用

Change 1 to 0 which means com.apple.iCloudis disabled:

将 1 更改为 0,这意味着com.apple.iCloud禁用

SystemCapabilities = {
                        com.apple.iCloud = {
                            enabled = 0;

See picture below. This corrected the issue in myProject.xcodeproj.

见下图。这更正了myProject.xcodeproj 中的问题。

Hope it helps.

希望能帮助到你。

enter image description here

在此处输入图片说明