gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 20:52:45 24 4
gpt4 key购买 nike

我尝试将 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com