Why is a static library's header file not found for archiving?

后端 未结 3 2048
天涯浪人
天涯浪人 2021-01-31 11:29

I can build for debugging just fine. I\'ve triple checked that the static library is included in the build phases settings for the project. I\'ve also tried other things like he

3条回答
  •  孤独总比滥情好
    2021-01-31 11:58

    With the help of another SO questions(https://stackoverflow.com/a/10159481/143225) I was able to get the header file to include.

    Apparently, the archive build process is somehow different than the debug build process. By adding "$(BUILD_ROOT)/../IntermediateBuildFilesPath/UninstalledProducts" to the "User Header Search Paths" build setting it built successfully.

    I'd still like to understand why this isn't working as I expect it. I have a hunch that the project is built to auto include the header files for debug and release builds, but somehow not for archive builds. This is odd because I thought archive builds inherit from either debug or release settings from Xcode's scheme settings.

    Any additional info is welcome.

提交回复
热议问题