如何在Xcode方案中指定应用程序数据包? [英] How to specify application data package in Xcode Schemes?

查看:89
本文介绍了如何在Xcode方案中指定应用程序数据包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Xcode方案指定应用程序数据包,以便我可以在测试期间自定义和部署到设备。但是,默认情况下,Scheme |选项| 应用程序数据组合框中没有任何项目。

I'd like to specify an application data package using Xcode schemes so that I can customize and deploy to the device during testing. However, by default, the Scheme | Option | Application Data combo box has no items in it.

我想我需要创建包并将其添加到我的xcodeproj中。但我找不到任何关于此的文档,甚至在笨重的书Xcode4 Unleashed中也找不到。我还尝试先为Archive构建。但在此之后,选项页面下仍然是无数据。

I guess I would need to create the package and add it to my xcodeproj. But I can't find any documentation about this, not even in the bulky book Xcode4 Unleashed. I also tried to build for Archive first. But after that still "No Data" under the Option page.

推荐答案

我知道最简单的方法是去组织者(苹果)转移2),然后找到一个连接的设备。

Easiest way I know is to go to the Organiser (apple shift 2), and then find a connected device.

转到应用程序并选择您需要应用程序数据的应用程序并点击下载。这将把一些沙盒数据转储到dev机器上的一个包中。

Go to applications and select the application you need app data for and hit download. This is going to dump some of the sandbox data into a package on your dev machine.

要在方案中使用它,你只需要将它添加到你的项目中,然后它会显示在下拉列表中。

To use this in the scheme, you just need to add this to your project, and then it will show up in the drop down.

据我所见,没有办法选择放入xcappdata文件的数据,但由于它是一个包,你可以在finder中打开它(显示包内容)并摆脱你不想要的任何东西。

As far as I can see, there isn't a way to choose what data to put in the xcappdata file, but since it is a package, you can open it in the finder ( show package contents) and get rid of anything you don't want.

希望这有帮助

这篇关于如何在Xcode方案中指定应用程序数据包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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