peoplewareDo / nativescript-svg

Nativescript plugin - support for .SVG file format
Other
70 stars 55 forks source link

Not working with tns 3.3.0 - CocoaLumberjack/Classes/DDOSLogger error #27

Closed ddjordjev closed 6 years ago

ddjordjev commented 6 years ago

I'm using Xcode 9.1, tns 3.3.0 and it breaks on build with following:

...
Installing CocoaLumberjack (3.2.0)
Using PocketSocket (1.0.1)
Installing SVGKit (2.0.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 3 total pods installed.
[WARNING]: [!] Automatically assigning platform ios with version 8.0 on target nogoshmobile because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Project successfully prepared (iOS)
Building project...
Xcode build...
/Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:19:8: warning: 'DDOSLogger' is partial: introduced in iOS 10.0 [-Wunguarded-availability]
static DDOSLogger *sharedInstance;
       ^
In file included from /Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:16:
/Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.h:29:12: note: 'DDOSLogger' has been explicitly marked partial here
@interface DDOSLogger : DDAbstractLogger <DDLogger>
           ^
/Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:19:20: note: annotate 'sharedInstance' with an availability attribute to silence
static DDOSLogger *sharedInstance;
                   ^
/Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:58:17: error: static_assert failed "format argument must be a string constant"
                os_log_error(OS_LOG_DEFAULT, msg);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'os' imported from /Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:17:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/os/log.h:319:9: note: expanded from macro 'os_log_error'
        os_log_with_type(log, OS_LOG_TYPE_ERROR, format, ##__VA_ARGS__)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/os/log.h:475:5: note: expanded from macro 'os_log_with_type'
    _Static_assert(__builtin_constant_p(format), "format argument must be a string constant"); \
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:62:17: error: static_assert failed "format argument must be a string constant"
                os_log_info(OS_LOG_DEFAULT, msg);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'os' imported from /Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:17:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/os/log.h:247:9: note: expanded from macro 'os_log_info'
        os_log_with_type(log, OS_LOG_TYPE_INFO, format, ##__VA_ARGS__)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/os/log.h:475:5: note: expanded from macro 'os_log_with_type'
    _Static_assert(__builtin_constant_p(format), "format argument must be a string constant"); \
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:67:17: error: static_assert failed "format argument must be a string constant"
                os_log_debug(OS_LOG_DEFAULT, msg);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'os' imported from /Users/damirdjordjev/nogosh-workspace/nogosh-mobile/platforms/ios/Pods/CocoaLumberjack/Classes/DDOSLogger.m:17:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/os/log.h:277:9: note: expanded from macro 'os_log_debug'
        os_log_with_type(log, OS_LOG_TYPE_DEBUG, format, ##__VA_ARGS__)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/os/log.h:475:5: note: expanded from macro 'os_log_with_type'
    _Static_assert(__builtin_constant_p(format), "format argument must be a string constant"); \
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 3 errors generated.
** BUILD FAILED **
ddjordjev commented 6 years ago

Seams that CocoaLumberJack had resent fix on that: https://github.com/CocoaLumberjack/CocoaLumberjack/tree/master/Lumberjack.xcodeproj

dndeus commented 6 years ago

ddjordjev what I need to do in order to update it??

victorsosa commented 6 years ago

not related to this plugin