Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not build module 'UIKit" in cocoapods since Xcode 5.1

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 problems with my two pods: AFNetworking SDWebImage

Any thought on this?

like image 623
Sancho Sanchez Avatar asked Mar 12 '14 11:03

Sancho Sanchez


Video Answer


1 Answers

I met the similar problem. The only difference is that my error is "Could not build module SpriteKit".

I finally solved the problem by deleting all files inside the ModuleCache folder: /Users/YOUR_USER_NAME/Library/Developer/Xcode/DerivedData/ModuleCache Then I build and met errors to prompt me to clean build. I clean the project and rebuild and everything is fine.

I think the cause is that I once played Xcode 6, and it has new modules which missing some architectures (in my case, it is armv7). These new modules pollute the module cache.

like image 87
Yingpei Zeng Avatar answered Sep 23 '22 06:09

Yingpei Zeng