The problem is that Swift automatically imports syslog.h , which defines constants with the same name.
If your SWIFT code does not need syslog constants, you should be able to define them before importing DDLog.h to get rid of the warning.
#undef LOG_INFO #undef LOG_DEBUG #import "DDlog.h"
source share