美文网首页
如何在Swift项目中全局引用Framework?

如何在Swift项目中全局引用Framework?

作者: jzhang | 来源:发表于2020-04-20 01:33 被阅读0次

方法一:

You should be able to import it globally by adding @_exportedbefore the import.
@_exported import Podname
However, like the previous posters mentioned, this is not recommended.

方法二:

在桥接文件中引用这个Framework(前提是混编项目)

相关资料:
How to import a Swift framework globally?

相关文章

网友评论

      本文标题:如何在Swift项目中全局引用Framework?

      本文链接:https://www.haomeiwen.com/subject/lrewyhtx.html