我正在使用
xcode 6.3,swift 1.2并使用cocoapods安装“JSQMessagesViewController”库.这是我的pod文件:
pod 'JSQMessagesViewController'
和我的桥文件:
#import <JSQMessagesViewController/JSQMessages.h>
然后我得到错误:
'JSQMessagesViewController/JSQMessages.h' file not found with <angled> include; use "quotes" instead
我不知道为什么会出错.当我用更新桥文件时
#import "JSQMessagesViewController/JSQMessages.h"
我收到了错误
JSQMessagesViewController/JSQSystemSoundPlayer+JSQMessages.h:19:9: 'JSQSystemSoundPlayer/JSQSystemSoundPlayer.h' file not found with <angled> include; use "quotes" instead
这真的让我感到困惑,因为错误是在JSQMessagesViewController的源代码中,我无法修改.我用Google搜索了一天,没有办法解决它.
由于JSQMessagesViewController库在githup中如此受欢迎,我相信必须有人知道如何修复它.
解决方法
您使用了符号表示框架.您使用0.36或更高版本的cocoapods?然后你可以通过将它放在你的pod文件中从JSQMessagesViewController创建一个框架:
source 'https://github.com/CocoaPods/Specs.git' platform :ios,'8.0' use_frameworks! pod 'JSQMessagesViewController'