Including a static library in a Xcode project

前端 未结 1 404
别跟我提以往
别跟我提以往 2021-01-16 22:47

I have developed a static library using the \"iPhone OS->Library->Cocoa Touch Static Library\" of Xcode. I compiled it and it works fine. Then I wanted to include this libra

相关标签:
1条回答
  • 2021-01-16 22:57

    I found the solution. I dragged & dropped the .a (library file) into the "Link Binary With Libraries" of the main project target.

    However I have an other problem.

    My static library contains a class that needs the AudioToolbox framework. I added it in my static library. However I need to add the framework also inside the project. Is there a way to avoid duplicating the framework in the main project?

    0 讨论(0)
提交回复
热议问题