我正在使用 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 的源代码中,我无法修改。我用谷歌搜索了一天,没有找到解决问题的方法。
由于 JSQMessagesViewController 库在 github 中如此受欢迎,我相信一定有人知道如何修复它。
您使用了框架的符号。您使用的是 cocoapods 0.36 或更高版本吗?然后,您可以通过将 JSQMessagesViewController 放入 pod 文件中来创建一个框架:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'JSQMessagesViewController'
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)