渠晓友
渠晓友

Reputation: 11

Could not build module UIKit --- Xcode 8.3.3

Today when I Archive my project( including run in devices),It stops and show Build Failed.

When I run it with Simulators it works well.

this is the error

Could not build module UIKit

and some of system files show error like this:

Could not build module UIKit

system file errors

I tried a lot but can't solve it.

but it doesn't work for me!

thank you very much for read my question and help me!

Upvotes: 0

Views: 1999

Answers (3)

FrugalResolution
FrugalResolution

Reputation: 655

This error accrued for me after updating my iPhone to new iOS version. After that I had to complete restart everything, including iPhone device and Mac. Afterwards I could update to recommended settings for my pods and everything works again.

Upvotes: 0

Joe
Joe

Reputation: 1

If you add c file into you project, in the pch file, you should modify #import SomeHeaderFile to

#ifdef __OBJC__
#import  SomeHeaderFile
#endif

Upvotes: 0

Mahendra
Mahendra

Reputation: 8914

The same thing happened with me. I modified a file in UIKit framework accidentally and after that so many try I didn't fixed that issue.

Even I've tried to replace UIKit with new one. (You can try it.)

What I did is...

Delete Xcode from Application folder and reinstall it at same place.

Please make sure your Xcode is in Application folder.

Upvotes: 0

Related Questions