Xcode 未将 .xcappdata 加载到应用程序中 [英] Xcode is not loading the .xcappdata into the app

查看:59
本文介绍了Xcode 未将 .xcappdata 加载到应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用从我的 iPhone 5s 下载的一组数据(一个核心数据应用程序)在模拟器中预加载应用程序.我采取的步骤是:

I want to preload the app in the simulator with a set of data (a core data app) downloaded from my iPhone 5s. The steps I took were:

  1. 在连接到 Xcode 的设备上运行该应用
  2. 通过设备面板下载我的数据.
  3. .xcappdata 命名为simple.xcappdata"并将其拉入我的 Xcode 项目
  4. 在我正在运行的方案中选择simple.xcappdata"作为应用程序数据
  5. 运行应用程序时,列表视图中没有数据.
  1. Run the app on my device connected to Xcode
  2. Download my data through the devices panel.
  3. Name the .xcappdata "simple.xcappdata" and pulled it into my Xcode project
  4. Select "simple.xcappdata" as the Application Data in the scheme I´m running
  5. Running the app, I have no data in the list view.

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

The steps I took are outline here: http://corporationunknown.com/blog/2014/07/10/preloading-development-data-into-your-ios-app/

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

Is this a known bug in Xcode, am I doing something wrong, missing something?

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

I verified that the .xcappdata contains entries in the sqlite database. I´m running Version 6.3 (6D570) of XCode. iOS 8.3 SDK. The app is in the store, so I know the list view and core data stack to be working.

推荐答案

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

It seems to be a bug in Xcode 6.

您用作参考的写博客的人更新了博客:

The person writing to blog that you used as reference updated the blog with this:

更新 2015-04-20:这在 Xcode 5 中运行良好.不幸的是 Xcode 6(截至撰写本文时,通过 6.3)的行为与针对模拟器(它确实可以很好地加载设备).版本 <6.3 会告诉你您应用数据包将在您下次安装时安装每次都在模拟器中运行您的应用程序.6.3 版只会静默无法加载包.我已将此报告为rdar://20622011/打开雷达

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

这篇关于Xcode 未将 .xcappdata 加载到应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆