I cannot build my application anymore since I updated Xcode to the new version (Xcode 5.1). the error message is \'Could not build module \'UIKit\'\'. I have the same probl
Go to your DerivedData
directory and remove ModuleCache
directory.
In terminal:
cd /Users/<account_name>/Library/Developer/Xcode/DerivedData
rm -rf ModuleCache/
then reinstall pods: pod install
.
If it doesn't help try removing whole DerivedData directory and reinstall pods.
change xcodebuild commnad parameter
-sdk iphoneos
to
-sdk iphonesimulator
My Problem was the app was running in Release mode Changing back to debug...Boom!! starts working
I think I had both a copy of iphone-private-frameworks which collided with the standard headers, so changing the order in the build settings seems to be OK now.
So, I also encountered this problem, and discovered the problem was that my Podfile's minimum iOS version was 6.1 while my project's minimum iOS Version was 6.0. Getting these two values aligned resolved the issue.
I was working on xcode 8 beta and project was building on simulator. But when I tried to run on Device. I got the same error
Could not build module 'UIKit"
It is due to UIKit framwork some how get deleted or Typed something inside it. Deleting Xcode and reinstalling it. Error got solved.