简体   繁体   English

CocoaPods在Xcode 7 Swift 2.2中没有这样的模块

[英]CocoaPods no such module with Xcode 7 Swift 2.2

Can't seem to import any of my pods in my project. 似乎无法在我的项目中导入我的任何Pod。 It always tells me there is "no such module" Have tried everything that I read online and wondering if I should reinstall Xcode. 它总是告诉我“没有这样的模块”尝试了我在线阅读的所有内容,并且想知道是否应该重新安装Xcode。

Used use_frameworks! 使用过的use_frameworks! in my pod file with the pods VideoSplashKit and Firebase. 在我的Pod文件中,其中包含Pod VideoSplashKit和Firebase。 Did a pod install then opened the new xcworkspace file. 安装Pod之后打开新的xcworkspace文件。 Even tried adding the two libraries in my build settings.Still nothing, any idea? 甚至尝试在我的构建设置中添加这两个库。

Error 错误

What my project looks like 我的项目看起来像什么

Here is my temporary solution. 这是我的临时解决方案。

Add built frameworks into embedded binaries 将内置框架添加到嵌入式二进制文件中

In the bridge file, change #import to @import ; 在桥接文件中,将#import更改为@import;

By doing this, my code can use the framework in cocoapods project. 通过这样做,我的代码可以在cocoapods项目中使用该框架。

It's not the solution for this problem but just let me continue to work until the solution come. 这不是解决此问题的方法,只是让我继续努力直到解决方案来临。

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

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