问题描述
我尝试将QuickDialog包含在我的一个项目中,但无法让它工作。
我做了以下事情:
I try to include QuickDialog into one of my projects and just can't get it to work.I did the following:
- 从
- 将其复制到我的项目目录中
- 拖放并下载从下载的QuickDialog.xcodeproj文件之前从Finder到我的项目的github
- 在构建阶段,添加了QuickDialog(lib,而不是示例应用程序)
作为目标依赖项 在Link Binary With Libraries部分中添加 - ,添加了libQuickDialog.a
库(这变成了红色实际上不知道为什么) - 在我的前缀中.pch文件,添加:
#import< QuickDialog / QuickDialog.h>
- downloaded it from github
- copied it into my project directory
- drag and droped the QuickDialog.xcodeproj file downloaded from githubpreviously from Finder to my project
- in the Build Phases, Added QuickDialog (the lib, not the example app)as a Target Dependency
- in the Link Binary With Libraries section, added the libQuickDialog.alibrary (this turns red actually don't know why)
- In my Prefix.pch file, add:
#import <QuickDialog/QuickDialog.h>
因为这不起作用我也尝试了以下内容:
cause this didn't work I also tried the following:
- 将-Objc和-all_load添加到我的其他链接器标志
- 将
$(SOURCE_ROOT)/ escoz-QuickDialog-b5f67f1
添加到用户标题
搜索路径
- added -Objc and -all_load to my "Other Linker Flags"
- added
$(SOURCE_ROOT)/escoz-QuickDialog-b5f67f1
to "User HeaderSearch 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项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!