How can I create static library and can add just .a file on any project in ios

前端 未结 3 1615
青春惊慌失措
青春惊慌失措 2020-12-01 01:33

How can I create static library and can add just .a file on any project in ios.

I tried doing this but couldn\'t do it.

Thanks in advance

3条回答
  •  心在旅途
    2020-12-01 02:06

    Objective-C consumer -> Objective-C static library

    Xcode version 10.2.1

    Create Objective-C static library

    Follow Create Objective-C static library section

    Objective-C consumer with Objective-C static library

    Follow Swift consumer with Objective-C static library section

    Import module to the Objective-C client code[module_name]

    @import module_name;
    

    More examples here

提交回复
热议问题