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