in this chapter, when I organized the code from playground to separate files, Xcode kept showing me this error saying it cannot find BasicAccount in scope, while the BasicAccount class and the Account protocol have been marked open and public (as you can see from pictures below).
The same problem persists even when I use the files provided in the Swift Apprentice Github repo!
Also, importantly, the code runs successfully despite the error message.
I’ve tried to figure it out but I am dumbfounded… is it some kind of bug from Xcode? I’ve tried rebuilding the file, restart Xcode and my computer, all of which did not work, please advise! Thanks a lot.