Could not build module UIKit

前端 未结 24 1206
予麋鹿
予麋鹿 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:41

    If cleaning the project and deleting the 'derived data' doesn't work, try to change the 'Deployment target' (at 'General' tab) from 7.0 to 7.1

    0 讨论(0)
  • If your project builds for another target (e.g. it builds for simulator and NOT your device), then it's confirmed you accidentally edited one of the header files of the frameworks for that target. The affected framework is the one you are receiving compiling errors for.

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

    Cleaning some unnecessary Xcode data using DevCleaner for Xcode app worked for me.

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

    If you have two Xcode then uninstall both and again install Xcode. It worked for me.

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

    My error was a wrong version of command line tools - go to Preferences->Locations and change the command line tools version - quit xcode and try again.

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

    For some reason your UIKit.framework is corrupted, either copy a working UIKit.framework from somewhere else into

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
    

    Or reinstall Xcode the fix the issue.

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