没有这样的模块“Sinch”Xcode 9.1 Swift 4

问题描述 投票:1回答:1

这个问题可能是这个“Sinch Integration in swift project”的重复但是我正在做所有这些步骤但是得到同样的错误“没有这样的模块'Sinch'。我已经按照以下步骤检查并告诉我,如果我错过任何步骤或需要添加? ?

我在我的podfile中添加了这个:pod'SinchRTC'

Pod安装成功,没有任何警告:enter image description here

在Bridge-Header文件中添加了这个:

#import<Sinch/Sinch.h>

注意:更新pod超过10次并多次重启xcode.enter image description here

ios swift cocoapods sinch
1个回答
3
投票

我用cocoapod和Bridge-Header做了同样的事情,我发现你不需要在标题中使用import Sinch

您可以直接使用它而无需导入。检查下面的截图:

enter image description here

在圆角下:

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项目了解更多信息。

© www.soinside.com 2019 - 2024. All rights reserved.