Could not build module 'UIKit" in cocoapods si

2019-02-21 09:44发布

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?

15条回答
Emotional °昔
2楼-- · 2019-02-21 09:55

After trying everything else, restarting my computer fixed this.

查看更多
Emotional °昔
3楼-- · 2019-02-21 09:58

I solved the issue by deleting and adding UIKit.framework in Build Phases -> Link Binary With Libraries.

查看更多
疯言疯语
4楼-- · 2019-02-21 09:58

I'm using Xcode 8 having similar issue and I tried Xcode reset,deleting derived data none worked finally resolved the issue by deleting and reinstalling Xcode.

查看更多
做个烂人
5楼-- · 2019-02-21 10:01

I have the same problem. I solved this by going to XCode -> Preferences ... -> Download

enter image description here

I have iOS 6.1 and 7.0 simulators.

In the project go to Build Settings -> Deployment and then in iOS Deployment Target section make sure the right iOS simulator version is selected. In my case I chose iOS 7.0

enter image description here

查看更多
等我变得足够好
6楼-- · 2019-02-21 10:02

After trying all of the above to no avail, I finally reinstalled XCode which did the trick.

查看更多
冷血范
7楼-- · 2019-02-21 10:03

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.

查看更多
登录 后发表回答