Including QuickDialog into Xcode 4.2 Project

此生再无相见时 提交于 2019-12-06 12:02:51

问题


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

  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. added -Objc and -all_load to my "Other Linker Flags"
  2. added $(SOURCE_ROOT)/escoz-QuickDialog-b5f67f1 to "User Header Search Path"

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?


回答1:


Did you not do exactly these steps too, from the 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).

These instructions do work.




回答2:


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.

It should look like this: "${PROJECT_DIR}/QuickDialog"

Thats the trick.



来源:https://stackoverflow.com/questions/9308297/including-quickdialog-into-xcode-4-2-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!