So in my code, my LoginViewController is a subclass of a ConversationViewController (is a part of a Swift Package that I am adding to my project). Now, ConversationVC has a setter variable declared as public, which i refer to in LoginVC.
Ideally it should not give me an error, but I am getting the following one.
Cannot find 'isChatBarHidden' in scope
isChatBarHidden is declared as a public variable and the class ConversationVC has a public init()
I have tried the usual : deleting derived data and doing a clean build, tried importing the Swift Package again after reset and resolve, but nothing seems to help with the error.
Any help with why I might be getting the error is highly appreciated!
Hmm.... this is strange. You should be able to access isChatBarHidden. Even if there was an access control issue, you should get a very specific error saying so. Try prefixing isChatBarHidden with self.. Do you have a link to the full project and package?
The reason for the error is pretty obvious. In Kommunicate, you're depending on the wrong branch of ApplozicSwift:
That branch doesn't contain a declaration of the isChatBarHidden property. If you change the branch to master, then it will work. (Although this may not be the only branch with that property).
You should carefully review which branch of each dependency that you are using.