【问题标题】:‘QRootElement.h file not found’ error when building an Xcode project that uses QuickDialog构建使用 QuickDialog 的 Xcode 项目时出现“未找到 QRootElement.h 文件”错误
【发布时间】:2011-11-10 08:59:04
【问题描述】:

我想使用QuickDialog,但我不能毫无错误地使用它。

这就是我所做的:

  1. 将 .xcodeproj 项目拖到我的 Xcode 4 项目中。选择了默认选项“为任何添加的文件夹创建组”和“添加到目标”

  2. 从 Xcode 侧边栏中选择我的项目,然后选择我想要添加 QuickDialog 的目标。

  3. 选择了构建阶段选项卡。

  4. 在 Target Dependencies 组下,点击加号按钮,选择 QuickDialog 静态库目标。

  5. 在 Link Binary Libraries 组下,单击加号按钮,选择 libQuickDialog.a。

  6. 在目标的标头搜索路径中添加了“$(SOURCE_ROOT)/Build”。

  7. 在其他链接器标志中添加了“-ObjC”

现在,如果我构建 (cmd + b) 一切正常!但是,如果在我自己的代码中,我会添加,例如:

#import "QRootElement.h"

我收到很多错误:

'QRootElement.h' file not found
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1
error: unable to open executable '/Users/myUser/Library/Developer/Xcode/DerivedData/SaGASForm-gvoiwjscornqdcfjxbxtdjcwxnwq/Build/Products/Debug-iphoneos/ProjectForm.app/ProjectForm'

我的项目已设置为使用带有 LLVM 3.0 的 ARC。

我做错了什么?

【问题讨论】:

    标签: objective-c xcode4


    【解决方案1】:

    问题好像是你的XCode项目在子项目中找不到头文件。

    在第 6 步中,您可能没有使用头文件链接到正确的目录。

    这里有关于如何将 QuickDialog 添加到您的项目的详细信息:http://escoz.com/open-source/quickdialog

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-17
      • 2021-11-29
      • 1970-01-01
      • 2019-01-04
      • 1970-01-01
      • 2012-10-06
      • 1970-01-01
      • 2012-12-31
      相关资源
      最近更新 更多