Difference between framework and static library in xcode4, and how to call them

前端 未结 2 1875
不思量自难忘°
不思量自难忘° 2020-11-27 09:52

I am quite new to xcode and objective-c. I want to ask a very basic question.

I saw that when \"linking binary to libraries\" in project settings, there are differen

2条回答
  •  没有蜡笔的小新
    2020-11-27 10:07

    basically, frameworks ARE libraries and provide a handy mechanism for working with them. If you look "inside" a framework, it's just a directory containing a static library and header files (in some folder structure with metadata).

    If you want to create your own framework, you have to create a "static library" and pack it in a specific way. see this question

    In general, framworks on platforms are used for reusable behaviour where you add your own code "into an existing framework". if you want to have some specific functionality, you may want to use a library (e.g. three20) and pack it into your app distributable

提交回复
热议问题