没有这样的模块“收缩”。 Xcode 9.1 Swift 4 [英] No Such Module "Sinch" Xcode 9.1 Swift 4

查看:90
本文介绍了没有这样的模块“收缩”。 Xcode 9.1 Swift 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题可能与



在Bridge-Header文件中添加了此内容:

 #import< Sinch / Sinch.h> 

注意:将Pod更新10次以上,然后重新启动xcode多次。

解决方案

我对cocoapod和Bridge-Header做过同样的事情,发现的是你不需要在标题中导入Sinch



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





Pod文件:

  target'test'做
#如果您不使用Swift而又不想使用下一行,请注释下一行使用动态框架
use_frameworks!

pod‘Alamofire’,‘〜> 4.0'
pod'SinchRTC'

#测试豆荚

结束

桥头文件:

  #import< Sinch / Sinch.h> 

检查示例项目以获取更多信息。


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.

解决方案

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.

这篇关于没有这样的模块“收缩”。 Xcode 9.1 Swift 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆