Swift: 创建框架依赖项
Swift: Creating Framework dependencies
iOS8:
我正在尝试创建一个将在我们的应用程序中使用的数据库框架 (DBKit)。 DBKit
需要 Couchbase
(ObjC) 和 Alamofire
(Swift) frameworks
.
我尽量避免使用 Umbrella framework
,因为 Apple 不鼓励使用它。
问题:
创建 framework
时,如何告诉 framework
在演示项目中使用 Couchbase
和 Alamofire
?
使用 Cocoa Pods
在 framework
中管理 frameworks
是个好主意吗?
相信您应该从您的应用程序而不是您自己的框架链接到相应的外部库。
对于 Couchbase,您只需将框架拖入 iOS 项目中的 'Supporting Files' 文件夹即可。
iOS8:
我正在尝试创建一个将在我们的应用程序中使用的数据库框架 (DBKit)。 DBKit
需要 Couchbase
(ObjC) 和 Alamofire
(Swift) frameworks
.
我尽量避免使用 Umbrella framework
,因为 Apple 不鼓励使用它。
问题:
创建
framework
时,如何告诉framework
在演示项目中使用Couchbase
和Alamofire
?使用
Cocoa Pods
在framework
中管理frameworks
是个好主意吗?
相信您应该从您的应用程序而不是您自己的框架链接到相应的外部库。
对于 Couchbase,您只需将框架拖入 iOS 项目中的 'Supporting Files' 文件夹即可。