Swift podspec JSQMessagesViewController非模块头

Swift podspec JSQMessagesViewController非模块头,swift,cocoapods,podspec,Swift,Cocoapods,Podspec,我想使用jsqMessageViewController作为我的swift pod的依赖项。当我构建示例应用程序时,我得到了与JSQSystemSoundPlayer相关的旧的非模块化头错误,但我不知道如何使用XCode 7解决它 Podspec: s.dependency 'JSQSystemSoundPlayer' s.dependency 'JSQMessagesViewController', '7.2.0' #Also tried 5.3.2 错误: 问题在于,Swift在将非模块

我想使用
jsqMessageViewController
作为我的swift pod的依赖项。当我构建示例应用程序时,我得到了与
JSQSystemSoundPlayer
相关的旧的非模块化头错误,但我不知道如何使用
XCode 7
解决它

Podspec

s.dependency 'JSQSystemSoundPlayer'
s.dependency 'JSQMessagesViewController', '7.2.0' #Also tried 5.3.2
错误:


问题在于,Swift在将非模块化框架导入框架时表现不佳。本质上,只有在将一个框架捆绑到另一个框架中时,才会遇到这个问题。有一个简单的解决方案,但是它需要JSQSystemSoundPlayer以及JSQMessagesViewController进行一些工作。这两个项目都需要具有以下Xcode项目设置:DEFINES_MODULE=YES。

这是JSQMessagesViewController的
v7.2.0
的已知问题:

检查此拉动请求:

具体而言,jessesquires(作者)的评论如下:


根据该线程,修复程序将成为
v7.2.1
的一部分。

它与
JSQSystemSoundPlayer
无关。 将此添加到
播客文件的开头

platform :ios, '8.0'
use_frameworks!
因此,对于包含的项目,应用程序将使用框架而不是静态库

JSQMessagesViewController更改摘要:

  • 将Podfile平台更改为iOS 8(
    平台:iOS,'8.0'
  • 将Podfile更改为使用框架而不是静态库(
    使用框架!
  • 将项目结构部署目标更改为iOS 8
  • 运行吊舱安装
  • 构建并运行应用程序

  • 我已经下载了示例应用程序并进行了构建。Xcode版本:7.2.1。还尝试将其用作依赖项视图,Cocoa Pods“pod'JSQSystemSoundPlayer'”仍然有效。您是否更改了项目文件中的某些内容?不,我没有在任何应用程序中使用JSQMessagesViewController。我指的是我的pod示例应用程序。我正在创建一个pod,JSQMessagesViewController是JSQSystemSoundPlayer+JSQMessages.h中的一个依赖项,将#import改为@import JSQSystemSoundPlayer;这应该可以解决问题,直到v7.2.0按照下面pshah的要求发布。