Could not build module UIKit

2019-01-25 04:20发布

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:

Could not build module UIKit

I tries a lot but couldn't solve it.

19条回答
霸刀☆藐视天下
2楼-- · 2019-01-25 05:12

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

You have 2 solutions:

1. Just Re-install XCode.

OR

2. Copy the Framework from another Mac (with same XCode version) & paste into yours.

Location:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
查看更多
登录 后发表回答