问题描述
我们正在使用新的v2 BoxSDK,并按照github存储库上的步骤将其集成为子项目。一切运行正常,但我们无法归档项目。我们得到错误:
We're using the new v2 BoxSDK, and followed the steps on the github repo to integrate it as a subproject. Everything builds and runs fine, but we can't archive the project. We get the error:
词法或预处理器问题:找不到'BoxSDK / BoxSDK.h'文件
Lexical or Preprocessor Issue: 'BoxSDK/BoxSDK.h' file not found
我尝试了几种设置用户标题搜索路径的组合,但是似乎找不到任何有效的方法。似乎将头文件放在其中:
I've tried several combinations of setting User Header Search Paths, but can't seem to find anything that works. It looks like the header files are being put in:
IntermediateBuildFilesPath / UninstalledProducts / include
"IntermediateBuildFilesPath/UninstalledProducts/include"
有人归档时有没有让v2 BoxSDK在应用程序中运行的机会?
Has anyone had any luck getting the v2 BoxSDK working in an app when archiving?
感谢您的帮助。
推荐答案
最后解决了。您必须将以下条目添加到标题搜索路径:
Finally worked it out. You have to add the following entry to your Header Search Paths:
"$(PROJECT_TEMP_DIR)/../UninstalledProducts/include"
请确保其中包含引号。
这篇关于尝试使用v2 BoxSDK归档项目时出现词法或预处理器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!