Cocoa Touch Framework vs Cocoa Touch Static librar

2019-02-02 04:48发布

Any comment on Cocoa Touch Framework vs Cocoa Touch Static library?

Can you distribute a Framework like a static library without source code?

标签: xcode xcode6
1条回答
萌系小妹纸
2楼-- · 2019-02-02 05:29

Cocoa Touch framework support was added in Xcode 6 primarily to support App Extensions in iOS 8 and Mac OS 10.10. App extensions have to be built as Cocoa Touch frameworks.

Frameworks also require less manual work to set up in a project than static libraries, although CocoaPods largely takes care of these pain points.

Frameworks can be - and are by by default - built without the source code in the build target. Usually only header file(s) are in the target. Therefore, you could create and share a binary only Framework.

查看更多
登录 后发表回答