简体   繁体   English

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

[英]No Such Module “Sinch” Xcode 9.1 Swift 4

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?? 这个问题可能是这个“ Sinch Integration in swift project ”的重复但是我正在做所有这些步骤但是得到同样的错误“没有这样的模块'Sinch'。在我跟随的步骤之后请检查并告诉我,如果我错过任何步骤或需要添加?

I have Added this in my podfile: pod 'SinchRTC' 我在我的podfile中添加了这个:pod'SinchRTC'

Pod installed successfully with no warning: Pod安装成功,没有警告: 在此输入图像描述

Added this in Bridge-Header file: 在Bridge-Header文件中添加了这个:

#import<Sinch/Sinch.h>

Note: Update pod more then 10 times and restarted xcode multiple times. 注意:更新pod超过10次并重新启动xcode多次。 在此输入图像描述

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. 我用cocoapod和Bridge-Header做了同样的事情,我发现你不需要在标题中import Sinch

You can directly use it without importing. 您可以直接使用它而无需导入。 Check below screenshot: 检查下面的截图:

在此输入图像描述

Pod File: Pod文件:

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. 查看示例项目以获取更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM