Could not build module UIKit

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

    I accidentally edited the Foundation framework file so UIKit.framework got corrupted. The only solution is recover the original.

    You have two solutions: Just reinstall XCode or copy the Framework from another machine with the same XCode version and paste into yours.

    Location:

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

提交回复
热议问题