RestKit编译失败,cocoapods use_frameworks快速运行 [英] RestKit compile fails with cocoapods use_frameworks for swift
问题描述
我将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屋!