Module file was created by an older version of the compiler

送分小仙女□ 提交于 2019-11-28 22:49:32

Are you using the right version of xcodebuild? What do you see when you run xcode-select -p? It should be pointed at Xcode 7 if you want to use the frameworks in Xcode 7.

Remove all the derive data rm -rf ~/Library/Developer/Xcode/DerivedData/ && carthage build

Also, When you use carthage update without --no-use-binaries option then it downloads the pre built frameworks which may be built using the old version of xcodebuild.

Alternative way is to use carthage update --no-use-binaries. This way it will compile all the frameworks with the latest Xcode build installed on your Mac.

I am using cocoapods.I just right-click the wrong framework,show it in Finder,remove it,and build the project again,solve the problem.

You can try rebuilding the framework by command line:

  • Open Terminal
  • cd project/directory
  • carthage build

then clean the xcode project and run!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!