简体   繁体   中英

Referencing External Library project classes or lib file from my project ios

I need to divide some class files into the project library and i need to reference that library to my project.

Example: MyProjectXcode will be divided into MyProjectXcode, DatabaseLibraryXcode and NetworkLibraryXcode three different xcode projects, but DatabaseLibraryXcode, NetworkLibraryXcode are the library projects.

MyProjectXcode needs to reference the library classes. I tried by including the library inside MyProjectXcode it is working. But i dont want to drag the library into my project. I just need to reference those files. I tried adding those project path in user header paths didn't worked. Can any one help?

Open Project Settings>>Build Phases>>Link Binary With Libraries>> scroll down click on '+' sign and add Libraries from finder.

Links for creating static libraries and linking inside XCode Proj.

1st Link 2nd Link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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