在iOS的框架中添加静态库

时间:2018-08-02 07:03:45

标签: ios objective-c xcode protocol-buffers static-libraries

我在项目中使用此库intregate: https://github.com/alexeyxo/protobuf-objc

我可以通过在项目中添加Xcode项目来成功集成。

现在,我不想将pod和xCode项目集成在一起,所以我为此创建了一个框架项目。

为此,我创建了一个框架项目,这样就不需要包括xcode项目。

ProtocolBuffers.framework

enter image description here

现在,我可以通过在项目中添加libProtocolBuffers.a和ProtocolBuffers.framework来运行应用程序。

但是我只希望.framework而没有成功。

对于在我的框架中包含.a,我尝试了以下操作:enter image description here

这是我的框架类型: enter image description here

我希望我能解释我的情况。 任何帮助或建议对我都会有所帮助。

0 个答案:

没有答案