Lexical or Preprocessor issue when trying to archive project using the v2 BoxSDK

北城余情 提交于 2019-12-13 00:16:40

问题


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:

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"

Has anyone had any luck getting the v2 BoxSDK working in an app when archiving?

Thanks for any help.


回答1:


Finally worked it out. You have to add the following entry to your Header Search Paths:

"$(PROJECT_TEMP_DIR)/../UninstalledProducts/include"

Make sure you have the quotes in there.




回答2:


Add "$(BUILT_PRODUCTS_DIR)" to your header search path.




回答3:


On XCode 7.1 following Header Search Path worked for me for the Release Build

$(PROJECT_TEMP_DIR)/../UninstalledProducts/iphoneos/include



来源:https://stackoverflow.com/questions/17678613/lexical-or-preprocessor-issue-when-trying-to-archive-project-using-the-v2-boxsdk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!