这个问题可能是这个“Sinch Integration in swift project”的重复但是我正在做所有这些步骤但是得到同样的错误“没有这样的模块'Sinch'。我已经按照以下步骤检查并告诉我,如果我错过任何步骤或需要添加? ?
我在我的podfile中添加了这个:pod'SinchRTC'
在Bridge-Header文件中添加了这个:
#import<Sinch/Sinch.h>
我用cocoapod和Bridge-Header做了同样的事情,我发现你不需要在标题中使用import Sinch
。
您可以直接使用它而无需导入。检查下面的截图:
在圆角下:
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
桥头文件:
#import <Sinch/Sinch.h>
查看Example项目了解更多信息。