Linking a static library to an iOS project in Xcode 4

后端 未结 6 1828
醉酒成梦
醉酒成梦 2020-11-28 02:16

I have a project (AQGridView) that compiles to a static library, but I can\'t seem to add it to my project.

Dragging in the project to my project create

6条回答
  •  清歌不尽
    2020-11-28 02:30

    Find your .a file in finder, and drag it into your project.

    Select the 'copy items into destination group's folder (if needed)', and add your headers to your project.

    Now, XCode 4 should automatically link against that framework for you.

    Here is what the library should look like in your project:

提交回复
热议问题