【发布时间】:2014-04-08 08:31:39
【问题描述】:
我得到了错误
GooglePlus/GooglePlus.h file not found
当我尝试构建项目时。我刚刚将 Google Plus 框架添加到项目中,之后,我尝试在 app delegate.m 文件中导入框架,但我只是收到此错误。
【问题讨论】:
-
GooglePlus 框架是否添加到 Link binary with libraies?
-
在构建设置中添加 -ObjC 在其他链接器标志中
-
不,不要在构建设置中添加
-ObjC,因为它根本没有任何效果。 -
删除 Google Plus 框架并重新添加。此错误是由于框架路径在 Header 路径中更改而发生的。
-
您似乎没有按照 Google 的说明进行操作。他们在头文件中说
#import <GooglePlus/GooglePlus.h>,在实现文件中说#import <GoogleOpenSource/GoogleOpenSource.h>。