开发者

Keeping headers as `project` in Xcode framework

开发者 https://www.devze.com 2022-12-14 21:23 出处:网络
I\'m making an Xcode framework, and I have one public header which accesses a bunch of project headers. But when I import the framework in another project, it throws errors that it can\'t find the hea

I'm making an Xcode framework, and I have one public header which accesses a bunch of project headers. But when I import the framework in another project, it throws errors that it can't find the header files that are project. I have referenced objects from the project headers in the public header. How do I keep those headers project but still use th开发者_如何学Ce objects from them in the public header?


In the public header file use @class to include other interfaces and use #import in the implementation file (.m).

Using @class informs the compiler that the indicated class exists but the compiler will not require it's implementation.

0

精彩评论

暂无评论...
验证码 换一张
取 消