1
votes

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

1
try to clean the project and rebuild it - user8336100
Tried more then 50 times from yeseterday - S. Bharti
did you tried to clear Derived Data? - iVarun
Could you Please show your " Bridge-Header" file? - Dixit Akabari
did you added use_frameworks! in pod file - MAhipal Singh

1 Answers

4
votes

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.