加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – Xcode没有将.xcappdata加载到应用程序中

发布时间:2020-12-15 01:51:50 所属栏目:百科 来源:网络整理
导读:我想在模拟器中使用从我的iPhone 5s下载的一组数据(核心数据应用程序)预加载应用程序。 我采取的步骤是: 在连接到Xcode的设备上运行应用程序 通过设备面板下载我的数据。 将.xcappdata命名为“simple.xcappdata”并将其拉入我的Xcode项目中 选择“simple.xc
我想在模拟器中使用从我的iPhone 5s下载的一组数据(核心数据应用程序)预加载应用程序。
我采取的步骤是:

>在连接到Xcode的设备上运行应用程序
>通过设备面板下载我的数据。
>将.xcappdata命名为“simple.xcappdata”并将其拉入我的Xcode项目中
>选择“simple.xcappdata”作为我正在运行的方案中的应用程序数据
>运行应用程序,列表视图中没有数据。

我采取的步骤概述如下:http://corporationunknown.com/blog/2014/07/10/preloading-development-data-into-your-ios-app/

这是Xcode中的已知错误,我做错了什么,错过了什么?

我验证了.xcappdata包含sqlite数据库中的条目。
我正在运行XCode的6.3版(6D570)。 iOS 8.3 SDK。该应用程序位于商店中,因此我知道列表视图和核心数据堆栈正在运行。

解决方法

这似乎是Xcode 6中的一个错误。

写作博客的人用作参考,用以下内容更新了博客:

Update 2015-04-20: This worked great in Xcode 5. Unfortunately Xcode 6 (through 6.3 as of this writing) does not behave as described for the Simulator (it does load a device just fine). Versions <6.3 will tell you “The application data package will be installed the next time you run your app in the Simulator”—every time. Version 6.3 will just silently fail to load the package. I have reported this as rdar://20622011 / Open Radar

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读