问题
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:
Added this in Bridge-Header file:
#import<Sinch/Sinch.h>
Note: Update pod more then 10 times and restarted xcode multiple times.
回答1:
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:
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.
来源:https://stackoverflow.com/questions/47843107/no-such-module-sinch-xcode-9-1-swift-4