swift 项目中的 Sinch 集成

Sinch Integration in swift project

我正在尝试使用 cocoapods

sinch 集成到我的 Swift 项目中
#platform :ios, '9.0'
use_frameworks!

target 'auxilium' do
  pod 'Alamofire', '~> 4.0'
  pod 'SinchRTC'
end

pod 安装工作正常,但是当我尝试导入库时 import Sinch 我收到此错误

No such module "Sinch"

任何帮助我错过的东西!谢谢

加上 我注意到我的 pod 不存在于 targets 中:

问题是我没有添加 Bridging-Header.h

#import <Sinch/Sinch.h>

不需要导入

#import<Sinch/Sinch.h>

您可以直接访问以下代码的示例而无需像下面的代码那样导入:

let config = Sinch()

作为参考,您可以在此处查看: