No such module JSQMessagesViewController

匆匆过客 提交于 2021-02-07 20:20:46

问题


I'm trying to import JSQMessagesViewController:

import JSQMessagesViewController

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

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?


回答1:


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

run this code on the terminal

[sudo] gem install cocoapods-deintegrate

once done

cd your file

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

---- another solution ---

try these

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

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

3-Cleaning the project and restarting my computer.

hope it helps



来源:https://stackoverflow.com/questions/43054225/no-such-module-jsqmessagesviewcontroller

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