Sudhanshu.B
Sudhanshu.B

Reputation: 636

No Such Module "Sinch" Xcode 9.1 Swift 4

This question may be duplicate of this "Sinch Integration in swift project" But i am doing all these steps But getting same error " No such module 'Sinch'. Below steps i have followed please check and let me know if i missed any steps or need to add??

I have Added this in my podfile: pod 'SinchRTC'

Pod installed successfully with no warning: enter image description here

Added this in Bridge-Header file:

#import<Sinch/Sinch.h>

Note: Update pod more then 10 times and restarted xcode multiple times.enter image description here

Upvotes: 1

Views: 1682

Answers (1)

Dharmesh Kheni
Dharmesh Kheni

Reputation: 71854

I have done same thing with cocoapod and Bridge-Header and what I found is you don't need to import Sinch in your header.

You can directly use it without importing. Check below screenshot:

enter image description here

Pod File:

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

Bridge-Header File:

#import <Sinch/Sinch.h>

Check Example Project for more info.

Upvotes: 4

Related Questions