iphone - 将 QuickDialog 包含到 Xcode 4.2 项目中

标签 iphone objective-c include xcode4.2

我尝试将 QuickDialog 包含到我的一个项目中,但无法让它工作。 我做了以下事情:

  1. github 下载
  2. 将其复制到我的项目目录
  3. 拖放从 github 下载的 QuickDialog.xcodeproj 文件 之前从 Finder 到我的项目
  4. 在构建阶段,添加了 QuickDialog(库,而不是示例应用程序) 作为目标依赖项
  5. 在“链接二进制文件与库”部分中,添加了 libQuickDialog.a 库(这个变红其实不知道为什么)
  6. 在我的 Prefix.pch 文件中,添加:#import <QuickDialog/QuickDialog.h>

因为这不起作用我还尝试了以下方法:

  1. 将 -Objc 和 -all_load 添加到我的“其他链接器标志”
  2. 已添加$(SOURCE_ROOT)/escoz-QuickDialog-b5f67f1到“用户标题 搜索路径”

这也不起作用我总是收到错误 QuickDialog/QuickDialog.h file not found在线#import <QuickDialog/QuickDialog.h> 我做错了什么?

最佳答案

您是否也完全执行了这些步骤,来自 documentation :

Locate the “User Header Search Paths” setting, and set the Release value to “${PROJECT_DIR}/QuickDialog” (including quotes!) and check the “Recursive” check box.

The Debug value should already be set, but if it’s not, change that as well.

Also locate the “Always Search User Paths” value and set it to YES. Finally, find the “Other Linker Flags” option, and add the value “-ObjC” (no quotes).

这些说明确实有效。

关于iphone - 将 QuickDialog 包含到 Xcode 4.2 项目中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9308297/

相关文章:

javascript - 使用此(或其他 javascript)函数了解 XMLHttpRequest 响应?

objective-c - 在 Objective-C 中,有没有办法指定您希望 @selector() 使用哪个选择器定义?

ios - 如何使用密码保护在电子邮件上发送 zip 文件并在 objective-c 中通过电子邮件解压缩

php - require() 和 include() 语句在条件语句中的行为是否不同?

iphone - iOS 在 UIModalTransitionStylePartialCurl View Controller 上呈现全屏 View

iphone - hidesBottomBarWhenPushed 和短 UITableViews 上的强势 UISearchBar

iphone - 如何设置 View 的背景图像?

ios - 如何在 iOS 的 info.plist 中添加属性

include - Zk 包含的 .zul 页面不适用于主 Controller

c++ - 无法在C++中包含头文件