Sinch Integration in swift project

1.6k views Asked by At

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

There are 2 answers

0
Chlebta On BEST ANSWER

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

#import <Sinch/Sinch.h>
1
Sudhanshu.B On

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