Reputation: 11
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:
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
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
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
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