No Such Module “Sinch” Xcode 9.1 Swift 4

*爱你&永不变心* 提交于 2020-01-11 12:01:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!