Sinch Integration in swift project

一笑奈何 提交于 2019-12-02 13:40:08

问题


I'm trying to integrate sinch into my Swift project using cocoapods

#platform :ios, '9.0'
use_frameworks!

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

The pod installation work fine but when I try to import the library import Sinch I get this error

No such module "Sinch"

Any helps here what I've missed !!! thanks

Plus I've noticed that my pod doesn't exist in targets :


回答1:


The problem that was that I didn't add the Bridging-Header.h

#import <Sinch/Sinch.h>



回答2:


There is no need to import

#import<Sinch/Sinch.h>

You can directly access example for below code Without importing like below code:

let config = Sinch()

for reference you can check here: No Such Module "Sinch" Xcode 9.1 Swift 4



来源:https://stackoverflow.com/questions/41146336/sinch-integration-in-swift-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!