将QuickDialog包含在Xcode 4.2项目中 [英] Including QuickDialog into Xcode 4.2 Project

查看:134
本文介绍了将QuickDialog包含在Xcode 4.2项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I try to include QuickDialog into one of my projects and just can't get it to work. I did the following:


  1. github

  2. 将其复制到我的项目目录中

  3. 拖放并下载从下载的QuickDialog.xcodeproj文件之前从Finder到我的项目的github

  4. 在构建阶段,添加了QuickDialog(lib,而不是示例应用程序)
    作为目标依赖项
  5. 在Link Binary With Libraries部分中添加
  6. ,添加了libQuickDialog.a
    库(这变成了红色实际上不知道为什么)

  7. 在我的前缀中.pch文件,添加: #import< QuickDialog / QuickDialog.h>

  1. downloaded it from github
  2. copied it into my project directory
  3. drag and droped the QuickDialog.xcodeproj file downloaded from github previously from Finder to my project
  4. in the Build Phases, Added QuickDialog (the lib, not the example app) as a Target Dependency
  5. in the Link Binary With Libraries section, added the libQuickDialog.a library (this turns red actually don't know why)
  6. In my Prefix.pch file, add: #import <QuickDialog/QuickDialog.h>

因为这不起作用我也尝试了以下内容:

cause this didn't work I also tried the following:


  1. 将-Objc和-all_load添加到我的其他链接器标志

  2. $(SOURCE_ROOT)/ escoz-QuickDialog-b5f67f1 添加到用户标题
    搜索路径

  1. added -Objc and -all_load to my "Other Linker Flags"
  2. added $(SOURCE_ROOT)/escoz-QuickDialog-b5f67f1 to "User Header Search Path"

这也不起作用总是在行 #import< QuickDialog / QuickDialog.h> QuickDialog / QuickDialog.h文件 >
我做错了什么?

this also didn´t work I always get the error QuickDialog/QuickDialog.h file not found at the line #import <QuickDialog/QuickDialog.h> What do I do wrong?

推荐答案

因此,这些问题的解决方案如评论中所述, $ {PROJECT_DIR} / QuickDialog上的报价,你可以看到两个不同的报价。

So the solution to this problems are, as posted in the comments, the quotes on "${PROJECT_DIR}/QuickDialog" as you can see there two different quotes.

解决方案是不要从纪录片中复制它,而只是自己键入它并且你没事。

The solution is to NOT copy it from the documentary, instead just type it yourself and your are fine.

它应该是这样的:$ {PROJECT_DIR } / QuickDialog

这就是诀窍。

这篇关于将QuickDialog包含在Xcode 4.2项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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