简体   繁体   English

如何在ios中导入分层库?

[英]how to import hierarchical Library in ios?

I am new in IOS and I want to add an External Library in my Project. 我是IOS的新手,我想在我的项目中添加一个外部库。

The Libary is inside the other folder ie ffmpeg/include/libavcodec/avcodec.h. 库位于另一个文件夹内,即ffmpeg/include/libavcodec/avcodec.h. I add Libavcodec folder in Project and include Library Like. 我在Project中添加Libavcodec文件夹,并包含Library Like。

#include "libavcodec/avcodec.h" 

But it gives error 但它给了错误

Error: libavcodec/avcodec.h not found...

Thanks in advance .... 提前致谢 ....

Just drag and drop the library in your project in xcode. 只需将库拖放到xcode中的项目中即可。 and then you can import the files in any viewcontroller. 然后您可以在任何viewcontroller中导入文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM