Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RestKit compile fails with cocoapods use_frameworks for swift

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

like image 919
jimijon Avatar asked Mar 09 '15 01:03

jimijon


1 Answers

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.

like image 79
Orion Avatar answered Oct 21 '22 15:10

Orion