Found the answer. I had to prefix my class declaration with the public
modifier. So this:
class XYZ {
}
became:
public class XYZ {
}
And, as always, trashing the ~/Library/Developer/Xcode/DerivedData
folder fixed any minor complications.