Could not build module UIKit

前端 未结 24 1205
予麋鹿
予麋鹿 2020-12-17 07:59

Suddenly it stops building application in device. In simulator its working but when I connect the device and try to run it in device it gives me an error:

相关标签:
24条回答
  • 2020-12-17 08:31

    My Issue causing this same error was due to working in a workspace created by coco pods, somehow the link to the UiKit Framework had been lost from the original project.

    To solve this i just reopened the xCode project not the workspace and re added the missing UIKit framework, saved the project and closed it, re opened my workspace for the project and the annoying nag messages caused by this were fixed. Hopefully this helps someone else.

    0 讨论(0)
  • 2020-12-17 08:34

    Cleaning the project and restart xCode worked for me.

    0 讨论(0)
  • 2020-12-17 08:35

    In my case, after cleaning the project, only restarting my Mac helps.

    0 讨论(0)
  • 2020-12-17 08:36

    Cleaning Derived data worked for me

    0 讨论(0)
  • 2020-12-17 08:38

    Make sure none of the files are edited in the UIKit framework located inside Xcode.

    0 讨论(0)
  • 2020-12-17 08:40

    Please don't make the same mistake like I did. In my case, I accidentally typed some words into Foundation framework file.

    0 讨论(0)
提交回复
热议问题