The workspace with the iOS project and related a static library project

前端 未结 7 1673
盖世英雄少女心
盖世英雄少女心 2021-02-02 03:11

I am fighting with Xcode 4 workspaces. Currently Xcode 4 wins. Thus, my situation:

I have the workspace with the iOS app project. There is also static library project iO

7条回答
  •  猫巷女王i
    2021-02-02 03:21

    so far I also struggled with the same problem, but did come to a solution with a minimal tradeoff:

    This requires Dervied Data to be your Build Location. I set the Public Headers Folder path to ../usr/local/include This will ensure, that the headers will not be placed into the archive.

    For the app, I set the Header Search Path to: $(OBJROOT)/usr/local/include $(SYMROOT)/usr/local/include

    There are 2 entries necessary since the paths slightly change when building an archive and I haven't figured out how to describe it with only one variable.

    The nice thing here is, that it doesn't break code sense. So except for having 2 entries rather than one, this works perfectly fine.

提交回复
热议问题