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

前端 未结 15 1461
忘掉有多难
忘掉有多难 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 07:50

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

    change xcodebuild commnad parameter

    -sdk iphoneos
    

    to

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

    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 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.

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

    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:58

    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.

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