我正在尝试将我的库与 Swift 包管理器集成。运行swift build
它成功下载依赖项后,但它也给了我以下错误:
/Users/nikita/Documents/Projects/Projects/TestFramezilla/test/Packages/Framezilla-0.1.1/Sources/UIView+Installer.swift:14:18: error: use of undeclared type 'UIView'
public extension UIView {
^~~~~~
/Users/nikita/Documents/Projects/Projects/TestFramezilla/test/Packages/Framezilla-0.1.1/Sources/UIView+Installer.swift:29:18: error: use of undeclared type 'UIView'
public extension UIView {
^~~~~~
/Users/nikita/Documents/Projects/Projects/TestFramezilla/test/Packages/Framezilla-0.1.1/Sources/UIView+Relations.swift:27:11: error: use of undeclared type 'UIView'
extension UIView {
^~~~~~
/Users/nikita/Documents/Projects/Projects/TestFramezilla/test/Packages/Framezilla-0.1.1/Sources/UIView+Relations.swift:39:18: error: use of undeclared type 'UIView'
public extension UIView {
Cocoapods 和 Carthage 工作正常。我真的花了很多时间,无法理解我做错了什么。希望可以有人帮帮我!