在Mac Project中包含库 [英] Include library in Mac Project

查看:86
本文介绍了在Mac Project中包含库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个库项目"Mobiledeviceaccess",如果我构建此项目,则会在构建/调试中获取libMobileDeviceAccess.a文件,以及如何在MAC应用程序项目中使用此库.如何使用此库类文件?

I have a Library project "Mobiledeviceaccess", if i build this project, i get libMobileDeviceAccess.a file in build/debug, How to use this library in MAC application Project. How to use this library class file?

推荐答案

只需将.a文件添加到项目中,就像添加源文件一样.您还需要为库的公共API添加任何相关的.h文件.

Just add the .a file to the project in the same way that you would add a source file. You'll also need to add any relevant .h files for the library's public API.

这篇关于在Mac Project中包含库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆