- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
URLForUbiquityContainerIdentifier:
始终返回nil
NSURL *ubiquityURL = [fileManager URLForUbiquityContainerIdentifier:nil];
if (ubiquityURL == nil)
ubiquityURL
在调试中是正常的,但是
ubiquityURL
在分发到应用商店后始终是
nil
。
最佳答案
听起来您的发行版配置有错误的权利。 .entitlements plist中的com.apple.developer.ubiquity-container-identifiers值是什么?
关于ios - URLForUbiquityContainerIdentifier始终返回nil,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12769542/
我使用外部硬盘驱动器来存储用户数据,两周前我发生了崩溃,并更换为另一个名称的新光盘。我在首选项面板上的用户和组高级选项中执行此操作。当我从 NSFileManager URLForUbiquityCo
我正在尝试将 iCloud 支持添加到我的应用程序中,并且有两台设备用于测试,一台 iPhone 和一台 iPad。两者都运行 iOS 8.1 并连接到同一个 Apple 帐户。当我检查 iCloud
模拟器是iOS8.1,我用的是Xcode 6.1.1。 我已经尝试了几个不同来源的解决方案: URLForUbiquityContainerIdentifier alway return nil UR
我可以编写最简单的方法之一: +(NSURL *)notesURL { NSURL *url = [[NSFileManager defaultManager] URLForUbiquityC
我遇到了问题,即 URLForUbiquityContainerIdentifier 在某些情况下返回 nil,即使用户已在设置中正确设置了所有内容。我的代码: dispatch_async(some
我正在尝试为我的应用程序添加 iCloud 支持,并且一直在关注 Apple 自己的 iCloud Design Guide .该指南说我应该通过调用 [NSFileManager ubiquityI
当处于飞行模式或网络访问不可用的任何其他状态时,调用 NSFileManager 的 URLForUbiquityContainerIdentifier: 会返回 nil 吗? 对此的后续问题是:如果
关于 URLForUbiquityContainerIdentifier: 是否应该在主线程之外调用,我已经阅读了很多相互矛盾的信息。在许多 Apple 的文档中,他们总是大概在主线程上调用此方法。但
我编写了一个简单的测试应用程序 (Mac/Cocoa) 来连接到 iCloud 中的键值存储。我似乎在第一道篱笆上摔倒了。 您可以在此处查看我的简单应用程序的代码,您会发现我没有从“URLForUbi
我有一个非常简单的鞋盒式 iOS 应用程序,带有 1 单个 Core Data 数据库(作为 UIManagedDocument)并考虑尝试添加 iCloud 支持。 在创建新的 UIManagedD
我是一名优秀的程序员,十分优秀!