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

前端 未结 15 1463
忘掉有多难
忘掉有多难 2021-01-17 07:24

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

相关标签:
15条回答
  • 2021-01-17 08:00

    I had similar issue and fixed it by deleting Xcode from Applications and reinstalling it again.Worked like charm.

    0 讨论(0)
  • 2021-01-17 08:00

    Issue looks like it has to do with deployment - going through both the project, pod project, and individual pods to make sure all were set the same was the issue. a bit of a necro, but this is the right answer.

    0 讨论(0)
  • 2021-01-17 08:03

    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.

    0 讨论(0)
  • 2021-01-17 08:04

    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

    0 讨论(0)
  • 2021-01-17 08:06

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

    0 讨论(0)
  • 2021-01-17 08:11

    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.

    0 讨论(0)
提交回复
热议问题