如何使watchkit扩展应用程序和我的iPhone应用程序共享相同的icloud数据库 [英] how to make watchkit extension app and my iphone app share the same icloud databases
问题描述
我正在尝试为Apple Watch开发我的应用程序,但是我遇到了云容器问题。当我为手表扩展创建云工具包时,它创建了自己的容器/数据库,因此现在我正试图让他们两个共享同一容器/数据库。香港专业教育学院试图指定我想要的自定义容器,但它不起作用。请帮忙!
Im trying to make my app for the apple watch but I am running into a problem with the cloud containers. When I created cloud kit for the watch extension it created its own container/database so now Im trying to get them both to share the same one. Ive tried to specify the custom container I want but it is not working. Please Help!
推荐答案
Apple提供了一个示例应用程序,用于在所有目标之间共享iCloud数据。搜索 lister watchkit。他们在详细的文档中提到了设置过程- iOS和观看快速入门
Apple has provided a sample app for iCloud data sharing across all targets. Search for ‘lister watchkit’. They mentioned setup procedure in detailed document - ‘iOS and Watch Quick Start’
公共捆绑包标识符前缀在所有目标(例如com.example.myApp)之间共享。该前缀可用于创建iCloud文档标识符。
Common bundle identifier prefix is shared across all targets e.g., com.example.myApp. This prefix can be used to create a iCloud Document identifier.
这篇关于如何使watchkit扩展应用程序和我的iPhone应用程序共享相同的icloud数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!