如何在XCode中输入应用程序参数? [英] Where do I enter application arguments in XCode?

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

问题描述

我是Objective C和iPhone开发的新手.我在新的iPhone 3.0平台上使用CoreData.我的应用程序执行;但是,我没有从fetchedResultsController返回任何对象.我想看看正在传递给SQLite的SQL.

I am new to Objective C and iPhone development. I am using CoreData on the new iPhone 3.0 platform. My application executes; however, I am getting no objects back from the fetchedResultsController. I would like to see the SQL that is being passed to SQLite.

在Apple文档中,它说我可以通过将以下参数传递给应用程序来看到这一点

In the Apple documentation it says I can see this by passing the following argument to the application

-com.apple.CoreData.SQLDebug 1

-com.apple.CoreData.SQLDebug 1

我到底在哪里做?

推荐答案

在组和文件列表左窗格的XCode编辑器中:

In XCode editor on the left pane in the list of groups and files:

1)展开可执行文件"组 2)选择您的应用程序可执行文件,然后右键单击 3)选择获取信息 4)选择参数选项卡 5)在参数"框中添加必要的参数

1) Expand the "Executables" group 2) Select your application executable and right click 3) Select Get Info 4) Select the Arguments tab 5) Add the necessary argument in the Arguments box

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

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