Closed ainame closed 8 years ago
JFYI: There should no no such warnings. It seems that #if __has_include("CocoaLumberjack.h")
doesn't see the header. This condition was implemented for the CocoaPods where each pod sees all other includes, but it is not the case for Carthage.
This worked for me: In MagicalRecordLogging.h change
#if __has_include("CocoaLumberjack.h")
to
#if __has_include("CocoaLumberjack.h") || __has_include("CocoaLumberjack/CocoaLumberjack.h")
This fix has been merged into master
, and released as part of MagicalRecord v2.3.2. Please let me know if the problem persists.
We tried to install MagicalRecord(v2.3.0) and CocoaLumberjack(v2.2.0) via Carthage(v0.9.4).
Cartfile
MyApp-Prefix.pch
And then, we get many warnings like following this in Xcode7.1:
That line of code use
DDLogXXX
macro. I think that our situation will break following condition, andLOG_MAYBE
macro conflict CocoaLumberjack's one. https://github.com/magicalpanda/MagicalRecord/blob/master/MagicalRecord/Core/MagicalRecordLogging.h#L25Can I fix these warnings?