我想使用JSQMessagesViewController作为对我的快速吊舱的依赖。当我构建我的示例应用程序时,我得到了与JSQSystemSoundPlayer相关的旧的非模块头错误,但是我不知道如何使用XCode 7绕过它。
Podspec
s.dependency 'JSQSystemSoundPlayer'
s.dependency 'JSQMessagesViewController', '7.2.0' #Also tried 5.3.2错误:


发布于 2016-03-14 03:49:49
这是v7.2.0 of JSQMessagesViewController:https://github.com/jessesquires/JSQMessagesViewController/pull/1284的一个已知问题。
检查这个拉请求:https://github.com/jessesquires/JSQMessagesViewController/pull/1284
具体来说,这个评论来自jessesquires (作者):https://github.com/jessesquires/JSQMessagesViewController/pull/1284#issuecomment-181132880
根据该线程,修补程序将是v7.2.1的一部分。
发布于 2016-07-13 12:40:09
这与JSQSystemSoundPlayer无关。在Podfile开头添加以下内容:
platform :ios, '8.0'
use_frameworks!因此,app将使用框架而不是静态库来处理所包含的项目。
对JSQMessagesViewController的更改摘要:
platform :ios, '8.0')use_frameworks!)发布于 2016-03-14 03:17:08
问题是Swift在将非模块化框架导入到框架中时表现不佳。本质上,只有在将框架捆绑到另一个框架中时,您才会遇到这个问题。有一个简单的解决方案,但是它需要一些工作JSQSystemSoundPlayer和JSQMessagesViewController。这两个项目都需要具有以下Xcode项目设置: DEFINES_MODULE = YES。
https://stackoverflow.com/questions/35926444
复制相似问题