Could not build Objective-C module 'JSQMessagesViewController'

牧云@^-^@ 提交于 2020-01-21 02:57:30

问题


I have two projects which both use JSQMessagesViewController, however in one of them I am getting the error: "Could not build Objective-C module 'JSQMessagesViewController'", whereas the other one works fine...There is virtually no difference between the two projects, how do I get JSQMessagesViewController to work because it is essential to my application. Thanks.


回答1:


I fixed the problem by going through the following steps:

  • Clean the project, including the build cache (Command-Option-Shift-K)
  • Removing the pod.lock file and the pods.xcodeproj files
  • And then closing Xcode and running pod update again
  • Then building again.



回答2:


try to install the latest version of JSQMessagesViewController which is on develop right now through (pod 'JSQMessagesViewController', :git => 'https://github.com/jessesquires/JSQMessagesViewController.git', :branch => 'develop') it worked for me ..



来源:https://stackoverflow.com/questions/38076495/could-not-build-objective-c-module-jsqmessagesviewcontroller

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