找不到词法预处理器问题GooglePlus/GooglePlus.h [英] lexical preprocessor issue GooglePlus/GooglePlus.h not found
问题描述
1)我正在使用google-plus-ios-sdk-1.7.1.
1) I am having google-plus-ios-sdk-1.7.1.
2)我已经在项目的Build_Settings-> Build_Phases中添加了所有框架.
2) I have added all frameworks in project's Build_Settings ->Build_Phases.
3)在构建设置"中,我对始终搜索用户路径"保留是".
3) In my Build Settings i kept YES to Always search user paths.
4)以下是该
5)经过
找不到GooglePlus/GooglePlus.h文件"试图建立我的项目
在删除框架并再次添加后,我进行了Build-> Clean并重新启动Xcode的操作,但是Xcode仍然提供了GooglePlus/GooglePlus.h的信息
I did Build->Clean and Restarted Xcode, after removing frameworks and added once again but Xcode still giving GooglePlus/GooglePlus.h not found
推荐答案
将此字符串添加到Build Settings->User Header Search Paths
"${SRCROOT}/<--path-->/GooglePlus.framework/Headers"
如果google框架位于源文件夹中,则路径(SRCROOT)"是必需的.
The path "(SRCROOT)" is required if the google framework located in the sources folder.
例如对于我的应用程序,此路径如下所示:
E.g. for the my app this path looks like:
"${SRCROOT}/thirdparties/GooglePlus.framework/Headers"
这篇关于找不到词法预处理器问题GooglePlus/GooglePlus.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!