JSQMessagesViewController

JSQMessagesViewController

本文介绍了如何快速导入JSQMessagesViewController?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用xcode 6.3,swift 1.2,并安装了带有cocoapods的 JSQMessagesViewController库。这是我的pod文件:

I am working with xcode 6.3, swift 1.2 and I install the "JSQMessagesViewController" library with cocoapods. Here is my pod file:

pod 'JSQMessagesViewController'

和我的桥文件:

#import <JSQMessagesViewController/JSQMessages.h>

然后我得到了错误:

'JSQMessagesViewController/JSQMessages.h' file not found with <angled> include; use "quotes" instead

我不知道为什么会出错。当我使用

I don't know why it goes wrong. When I update the bridge file with

 #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中非常流行,所以我相信一定有人知道如何解决它。

This really gets me confused because the error is in the source code of JSQMessagesViewController which I cannot modify. I have googled for one day and get no methods to fix it. Since the JSQMessagesViewController library is so popular in githup, I believe the there must be someone know how to fix it.

推荐答案

您将表示法用于框架。您是否正在使用cocoapods 0.36或更高版本?然后,可以通过将其放在pod文件中来从JSQMessagesViewController创建一个框架:

You used the notation for a framework. Are you using cocoapods 0.36 or later? Then you could make a framework from JSQMessagesViewController by putting this in your pod file:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'JSQMessagesViewController'

这篇关于如何快速导入JSQMessagesViewController?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 22:12