X is not a member type of Y

后端 未结 6 1775
难免孤独
难免孤独 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 06:10

    If using xcframework follow below steps to get rid of error :

    1. In terminal, go to the folder where .xcframework is located.
    2. Run the following terminal command after replacing the frameworkName with your framework name:

    find . -name "*.swiftinterface" -exec sed -i -e 's/frameworkName\.//g' {} \;

    1. Replace the old xcframework in your project with xcframework generated with above command. Clean build the project.

    The above error only occurs in xcframework when a class named is same as the module name. Details on Apple forum at: https://forums.developer.apple.com/thread/123253

提交回复
热议问题