Closed CACRogerWang closed 6 years ago
I create a folder references, then swift compile pass.
using "create a folder references" is incorrect!!!
I reopen this issue. I still find the answer.
What do you mean "Swift Compile Error"? Fails to compile TagListView
?
I drag TagListView into my project, then build it. The Errors show up.
I guess there are some dependences issue in my project. Because I create a new project, it is work perfect.
Could you provide the smallest sample project which would cause this error?
I found the reason. I use SwifterSwift in my project.
SwifterSwift is installed by CocoaPods and is global in my project.
It's cause overriding non-open var outside of its defining module in TagView.
I can not reproduce the global SwifterSwift to show the problem. I only can import SwifterSwift in TagView to reproduce the error.
@CACRogerWang Could you use CocoaPods to manage all of your external packages?
If you need to customize a package, just fork it and push your changes to your fork.
You can specify git repo in the Podfile, as documented here.
Problem : Swift compiler error in TagView .
I use cocoaPods in my project, but I need some customize in TagListView.
So I drag TagListView folder in my project. Then Swift compiler error... ( use Swift 4.1)