X is not a member type of Y

后端 未结 6 1679
难免孤独
难免孤独 2021-02-13 05:36

I\'m having staring issues with Module name spacing in a swift project.

I\'ve tried this in a new project and everything works fine:

I have 2 modules with which co

6条回答
  •  失恋的感觉
    2021-02-13 05:44

    There is also this bug in swift compiler: SR-631 Extensions in different files do not recognize each other

    The result (success/failure) of the compilation depends on the order of files in Build Phase > Compile Sources setting.

    I had exactly the same error message: X is not a member type of Y. Solved it by rearranging compilation sources.

提交回复
热议问题