无法构建 Objective-C 模块“JSQMessagesViewController”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38076495/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Could not build Objective-C module 'JSQMessagesViewController'
提问by Ahad Sheriff
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.
我有两个项目都使用 JSQMessagesViewController,但是在其中一个项目中我收到错误消息:“无法构建 Objective-C 模块 'JSQMessagesViewController'”,而另一个项目工作正常......两者之间几乎没有区别项目,我如何让 JSQMessagesViewController 工作,因为它对我的应用程序至关重要。谢谢。
回答by Ahad Sheriff
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.
- 清理项目,包括构建缓存 (Command-Option-Shift-K)
- 删除 pod.lock 文件和 pods.xcodeproj 文件
- 然后关闭 Xcode 并再次运行 pod update
- 然后再建。
回答by Sa Yef
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 ..
尝试通过 (pod 'JSQMessagesViewController', :git => ' https://github.com/jessesquires/JSQMessagesViewController.git', :branch => 'develop')安装正在开发的最新版本的 JSQMessagesViewController对我来说有效..

