I'm trying to add OAuth2Client to a project. I have followed all the directions listed here, but I get NXOAuth2.h" File Not Found
error when I try to import "NXOAuth2.h
. The odd thing is that Xcode will escape complete this header, but then immediately give the error after it is entered.
我想把OAuth2Client添加到一个项目中。我已经按照这里列出的所有方向做了,但是我得到了NXOAuth2。当我尝试导入“NXOAuth2.h”文件时没有发现错误。奇怪的是,Xcode将转义完成这个头,但在输入错误后立即给出错误。
If it helps, I can upload a new program with just my OAuth2Client addition attempts to github.
如果有帮助,我可以上传一个新的程序,只需要添加OAuth2Client尝试github。
Header Search Paths
标题搜索路径
Link Binary With Libraries
把二进制与库
Public Headers on OAuth2Client Build Phases
OAuth2Client构建阶段的公共标头。
1 个解决方案
#1
4
The user header search path you have there doesn't look right to me. It should be set to "$(SRCROOT)/path/to/the/external/library/OAuth2Client". This then resolves to the ACTUAL path you want to search for header files.
你那里的用户头搜索路径对我来说不合适。它应该设置为“$(SRCROOT)/path/to/the/external/library/OAuth2Client”。然后解析到要搜索头文件的实际路径。
Also ensure you have followed all the steps outlined in the Read me. i.e. added the target of the NXOAuth2Client as a Target Dependancy
还要确保您已经按照Read me中列出的所有步骤进行了操作。即添加NXOAuth2Client的目标作为目标依赖
#1
4
The user header search path you have there doesn't look right to me. It should be set to "$(SRCROOT)/path/to/the/external/library/OAuth2Client". This then resolves to the ACTUAL path you want to search for header files.
你那里的用户头搜索路径对我来说不合适。它应该设置为“$(SRCROOT)/path/to/the/external/library/OAuth2Client”。然后解析到要搜索头文件的实际路径。
Also ensure you have followed all the steps outlined in the Read me. i.e. added the target of the NXOAuth2Client as a Target Dependancy
还要确保您已经按照Read me中列出的所有步骤进行了操作。即添加NXOAuth2Client的目标作为目标依赖