找不到'JSQSystemSoundPlayer / JSQSystemSoundPlayer.h'文件

时间:2016-05-19 23:23:43

标签: ios swift cocoapods jsqmessagesviewcontroller

我的应用程序中有'JSQSystemSoundPlayer.h':

enter image description here

但是,此错误仍然存​​在:

enter image description here

PodFile:

platform :ios, ‘9.3’
use_frameworks!
target 'MyApp' do
    pod 'Firebase'
    pod 'JSQMessagesViewController'
    pod ‘JSQSystemSoundPlayer’
end

2 个答案:

答案 0 :(得分:1)

我不相信您需要添加pod 'JSQSoundPlayer'它包含在JSQMessagesViewController窗格中,但您在JSQSoundPlayer周围使用了错误的引号,这就是它与众不同的原因颜色你需要`单引号而不是勾号' 。它们看起来很相似。很抱歉,如果您无法找到它,只需复制上一行并更改内容即可。祝你好运。

答案 1 :(得分:0)

尝试替换

#import JSQSystemSoundPlayer/JSQSystemSoundPlayer.h

@import JSQSystemSoundPlayer;