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

前端 未结 15 495
天命终不由人
天命终不由人 2021-01-17 07:19

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 07:50

    My Problem was the app was running in Release mode Changing back to debug...Boom!! starts working

    0 讨论(0)
  • 2021-01-17 07:51

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

    0 讨论(0)
  • 2021-01-17 07:51

    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.

    0 讨论(0)
  • 2021-01-17 07:52

    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.

    0 讨论(0)
  • 2021-01-17 07:54

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

    0 讨论(0)
  • 2021-01-17 07:56

    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)
提交回复
热议问题