Swift Compiler Error: Use of unresolved identifier 'name'

后端 未结 5 1971
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 14:34

I tried to include a class called \'name\' and I got an error:

Swift Compiler Error: Use of unresolved identifier \'name\'

The class exists

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 15:27

    I had this one too. You will probably find that your first class is included in your testing module and that "name" isn't. Simply, if you include a class in testing, then every class that it references has to be in testing.

提交回复
热议问题