0

I have static lib project from which I am exporting a single header file. I used this Apple document to configure the static library. Twice ;) In the same workspace I have another project which links to the static library. I used the above mentioned guide to configure this as well.

I have no issues building the static library. However, when I attempt to build the application which links to my static library the static lib build fails. It complains that it cannot locate header files referenced in the exported header.

Why would this be? Is my static library being built in a different location when building the linking project?

Can anyone give me some tips to trouble shoot this? I am following the documentation to a "T".

Thanks!

4

2 回答 2

0

尝试在目标的构建阶段中添加“复制标题”。

在此处输入图像描述

于 2013-07-24T20:07:39.043 回答
0

经过大量搜索和反复试验,我偶然发现了以下 SO 问题。滚动到“gdavis”答案(他/她拥有最多的 ++)。我在想我应该创建 Gist 来为我自己和世界存储这些信息;)同时给予贡献者信用。我爱我一些 iOS,但无法理解为什么 Apple 无法简化引用文件和资源的过程。甚至 MS 也解决了这个问题。无论如何,我希望这个人的回答对其他人的帮助和对我的帮助一样多。

有史以来最好的答案!

谢谢,

缺口

于 2013-07-27T15:17:43.683 回答