2
我在写my framework
,这取决于other framework
。 My framework
可以访问other framework
中的所有公共类型和协议。但是当我在project
中包含my framework
时,project
不能使用other framework
中的任何公共类型。Swift框架访问级别
是否可以启用project
访问other framework
中的所有公众?
我有两个解决方案:
- 使用
public typealise T = OtherProject.T
,但有太多的类型。 - 还导入
Other framework
在project
,它需要额外的依赖。
有没有更好的方法来做到这一点?