Sinch Integration in swift project

2019-03-02 11:30发布

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 : enter image description here

2条回答
做自己的国王
2楼-- · 2019-03-02 11:46

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

查看更多
唯我独甜
3楼-- · 2019-03-02 12:03

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

#import <Sinch/Sinch.h>
查看更多
登录 后发表回答