skip to Main Content

I have issue with my UnitTest target.
When I try to run unit test I got error Missing required module ‘LegacyCoreKit’
I have no idea what is this framework for. I can’t find it in my project and I can’t find it in Google.

Do you have any idea where to find this module or how to fix it?
enter image description here

I tried to find this module in Google but there is no sign of it

3

Answers


  1. I Solved this with "Clean Build Folder"

    enter image description here

    Login or Signup to reply.
  2. I am able to resolve this issue. In my case, this was happening due to SPM modules were not being added in Tests target which were being used in project target.

    • Select the Tests target
    • Go to Build Phases
    • In section Link Binary with Libraries, add all the modules which were used in project target

    After performing the above mentioned steps, Run the Tests using Command + U. It will be succeeded

    Login or Signup to reply.
  3. You just need to add the modulars and set headers to true.

    update pod like this,

    pod 'LIBRARY WICH YOU NEED TO ADD', :modular_headers => true
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search