ios - 没有这样的模块 "Sinch"Xcode 9.1 Swift 4

标签 ios swift cocoapods sinch

这个问题可能与“Sinch Integration in swift project”重复还是需要添加??

我在我的 podfile 中添加了这个: pod 'SinchRTC'

Pod 安装成功且没有警告:enter image description here

在 Bridge-Header 文件中添加:

#import<Sinch/Sinch.h>

注意:更新 pod 超过 10 次并多次重启 xcode。 enter image description here

最佳答案

我对 cocoapod 和 Bridge-Header 做了同样的事情,我发现你不需要在你的标题中import Sinch

无需导入即可直接使用。检查下面的屏幕截图:

enter image description here

Pod 文件:

target 'test' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

pod 'Alamofire', '~> 4.0'
pod 'SinchRTC'

  # Pods for test

end

桥头文件:

#import <Sinch/Sinch.h>

检查 Example项目了解更多信息。

关于ios - 没有这样的模块 "Sinch"Xcode 9.1 Swift 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47843107/

相关文章:

ios - Swift 中的以下 for 循环语法有什么问题?

ios - 如何在自动布局中使两个 View 之间的距离可变

javascript - 当没有公开 viewController 时,如何将 cocoapod 转换为 typescript ?

ios - 发送者如何知道它是最后一个连接到接收者的?

swift - 结构成员初始化 - 省略具有默认值的属性的值

ios - TextSpriteModel 背景文本上的圆角

Xcode 7.2 成功存档不会显示在管理器中,但会显示在有关派生数据文件夹的存档文件夹中

xcode - 为什么我的 RN 61 IOS 在 AppCenter 中构建构建失败?

ruby - Cocoapods 安装失败,无法构建 gem native 扩展

ios - Sprite Kit - 将对象移动到触摸位置