Disable MagicalRecord error messages and warnings

后端 未结 4 2317
说谎
说谎 2021-02-19 22:11

I just started using MagicalRecord, and this might be a stupid question, but it\'s really bothering me... I am using MagicalRecord with sqlite, and when I initiate MagicalRecord

相关标签:
4条回答
  • 2021-02-19 22:46

    In case you use pods add preprocessor macro MR_ENABLE_ACTIVE_RECORD_LOGGING=0 to magical record project like this: enter image description here

    0 讨论(0)
  • 2021-02-19 22:50

    swift

    MagicalRecord.setLoggingLevel(MagicalRecordLoggingLevel.Off)
    

    objC

    [MagicalRecord setLoggingLevel:MagicalRecordLogLevelOff];
    

    put it in your AppDelegate when the application didFinishLaunchingWithOptions

    0 讨论(0)
  • 2021-02-19 22:54

    It looks like you still have errors to fix. I suggest not ignoring those during development...

    0 讨论(0)
  • found it. add #define MR_ENABLE_ACTIVE_RECORD_LOGGING 0 in your Prefix.pch file before #import "CoreData+MagicalRecord.h"

    0 讨论(0)
提交回复
热议问题