Search code examples
iosswiftcocoapodsmagicalrecord

MagicalRecord not building when pulling pod with Cocoapods v1.0.x


I have been using MagicalRecord in one of my projects. Up until recently, I had been using Cocoapods v0.39.0 to pull down my pods. When v1.0.0 of Cocoapods was released, I, along with my team, updated to that newer version. Ever since then, MagicalRecord is not building anymore.

Specifically, there is an error in MagicalImportFunctions.h.

'MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h' file not found

I am not very familiar with what happens behind the scenes when using Cocoapods, so I am unsure as to why this is all of a sudden happening. If there is anything I need to provide here to help debug this problem, I will be happy to provide it.


Solution

  • It compiles when you use magicalrecord 3.0 Which is not available on cocopods but you could do: pod 'MagicalRecord', :git => 'https://github.com/magicalpanda/MagicalRecord', :branch => 'release/3.0' Which is also needed to get it working in xcode 8.

    But it seems like magicalrecord is discontinued, last update 4 months ago.