没有这样的模块JSQMessagesViewController [英] No such module JSQMessagesViewController

查看:78
本文介绍了没有这样的模块JSQMessagesViewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试导入JSQMessagesViewController:

I'm trying to import JSQMessagesViewController:

import JSQMessagesViewController

它给了我错误没有这样的模块".我在网上看到很多人遇到这个问题,但是找不到解决方案.这是我的Podfile:

And it gives me the error 'no such module'. I've seen many people with this problem on the web but I can't find the solution. Here's my podfile:

# Uncomment this line to define a global platform for your project
platform :ios, ‘9.2’
# Uncomment this line if you're using Swift 
use_frameworks!

target ‘IXODES’ do
 pod 'JSQMessagesViewController'
 pod 'Firebase'
 pod 'Firebase/Core'
 pod 'Firebase/Database'
 pod 'Firebase/Auth'
 pod 'Firebase/Messaging'

end

我尝试清理构建,还 pod取消集成,然后 pod安装 pod更新.没有任何效果,我可以像其他项目一样看到我项目中的库.有帮助吗?

I've tried cleaning the build, also pod deintegrate and then pod install and pod update. Nothing works and I can see the library in my project like the rest. Any help?

推荐答案

也许您尝试导入该文件,但该文件很可能丢失了,您可以做的几件事.您可以从cocoapods清除项目并重新安装cocoapod(这一次帮助我,我遇到了文件丢失的相同问题),您可以通过

perhaps you tried to import the file and the file is missing by any chance, a few things you can do. you can clean the project from cocoapods and re-install cocoapod(this helped me onetime i got the same problem the file were missing) you can do that by

在终端上运行此代码

[sudo] gem install cocoapods-deintegrate

完成一次

cd your file

然后运行此 pod解整合那就大功告成!并重新安装

and then run thispod deintegrate then you're all set! and re install it

----另一种解决方案---

---- another solution ---

尝试这些

1-将所有.frameworks添加到项目构建阶段->使用库链接二进制文件

1-Adding all of the .frameworks to the Projects Build Phases -> Link Binary With Libraries

2-选择每个框架并进行构建.您可以通过选择运行箭头旁边的项目名称来执行此操作.

2-Selecting each framework and building it. You can do this by selecting your project name next to the run arrow.

3-清理项目并重新启动计算机.

3-Cleaning the project and restarting my computer.

希望有帮助

这篇关于没有这样的模块JSQMessagesViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆