Cocoalumberjack: this framework what time support ios 11.0 and build in xcode 9.x bate

Created on 11 Sep 2017  ·  7Comments  ·  Source: CocoaLumberjack/CocoaLumberjack

New Issue Checklist

this framework what time support ios 11.0 and build in xcode 9.x bate.

Issue Info

Info | Value |
-------------------------|-------------------------------------|
Platform Name | e.g. ios / osx / tvos / watchos
Platform Version | e.g. 8.0
CocoaLumberjack Version | e.g. 2.3.0
Integration Method | e.g. carthage / cocoapods / manually
Xcode Version | e.g. Xcode 7.3
Repro rate | e.g. all the time (100%) / sometimes x% / only once
Demo project link | e.g. link to a demo project that highlights the issue

Issue Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

Most helpful comment

@kedu pod update CocoaLumberjack

All 7 comments

用xcdoe9运行就报错, if (message) {
const char *msg = [message UTF8String];

    switch (logMessage->_flag) {
        case DDLogFlagError     :
            os_log_error(OS_LOG_DEFAULT, msg);
            break;
        case DDLogFlagWarning   :
        case DDLogFlagInfo      :
            os_log_info(OS_LOG_DEFAULT, msg);
            break;
        case DDLogFlagDebug     :
        case DDLogFlagVerbose   :
        default                 :
            os_log_debug(OS_LOG_DEFAULT, msg);
            break;
    }

//报错
Static_assert failed "format argument must be a string constant"

@kedu pod update CocoaLumberjack

perform 'pod update CocoaLumberjack' later it's still repear same error

I have the same problem on the code:

switch (logMessage->_flag) {
        case DDLogFlagError     :
            os_log_error(OS_LOG_DEFAULT, msg);
            break;
        case DDLogFlagWarning   :
        case DDLogFlagInfo      :
            os_log_info(OS_LOG_DEFAULT, msg);
            break;
        case DDLogFlagDebug     :
        case DDLogFlagVerbose   :
        default                 :
            os_log_debug(OS_LOG_DEFAULT, msg);
            break;
    }
//报错
Static_assert failed "format argument must be a string constant"

Needs attention

It should now with 3.3.0.

This issue already should be fixed with CocoaLumberjack 3.3.0 as @rivera-ernesto says.

@bpoplauschi @rivera-ernesto
I think we can close this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ivulyov90 picture ivulyov90  ·  6Comments

tristanseifert picture tristanseifert  ·  5Comments

Diarrhio picture Diarrhio  ·  5Comments

dpbataller picture dpbataller  ·  9Comments

medisean picture medisean  ·  5Comments