RestKit编译失败,cocoapods use_frameworks快速运行 [英] RestKit compile fails with cocoapods use_frameworks for swift

查看:71
本文介绍了RestKit编译失败,cocoapods use_frameworks快速运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将RestKit与一些仅Swift框架一起使用,当我使用cocoapods use_frameworks时!标志,出现编译错误。它在桥接头文件中找不到CoreData.h,在RKValueTransformers.h中也找不到。

I am using RestKit along with some Swift only frameworks and when I use the cocoapods use_frameworks! flag, I get compile errors. It can't find CoreData.h in the bridging header and can't find RKValueTransformers.h

如果删除该标志,则所有文件均可正确编译。

If I remove the flag it all compiles correctly.

还有其他人看到吗?有没有解决方法

Anyone else seen this? Is there a workaround

推荐答案

据我所知,只能在桥接头中使用Objective-C或Swift库。没有解决方案使您可以在网桥头中同时使用Objective-C库和Swift库。我会说,使用Objective-C库的桥接头并将Swift库手动导入到项目中。

As far as I know one can only use either Objective-C or Swift libraries in the bridging-header. There is no solution enabling you to use both Objective-C and Swift libraries in the bridging-header. I would say, use the bridging-header for the Objective-C libraries and import Swift libraries manually into the project.

这篇关于RestKit编译失败,cocoapods use_frameworks快速运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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