lexical preprocessor issue GooglePlus/GooglePlus.h

2019-09-20 00:09发布

问题:

1) I am having google-plus-ios-sdk-1.7.1.

2) I have added all frameworks in project's Build_Settings ->Build_Phases.

3) In my Build Settings i kept YES to Always search user paths.

4) Here are the snapshots of that

5) After going through

“GooglePlus/GooglePlus.h file not found” when trying to build my project

I did Build->Clean and Restarted Xcode, after removing frameworks and added once again but Xcode still giving GooglePlus/GooglePlus.h not found

回答1:

Add this string to the Build Settings->User Header Search Paths

"${SRCROOT}/<--path-->/GooglePlus.framework/Headers"

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"