Cocoalumberjack: Use of undeclared identifier 'LOG_ASYNC_ENABLED'

Created on 22 Sep 2016  路  9Comments  路  Source: CocoaLumberjack/CocoaLumberjack

bildschirmfoto 2016-09-22 um 16 03 42

Issue Info

| Info | Value |
| --- | --- |
| Platform Name | ios |
| Platform Version | 10 |
| CocoaLumberjack Version | 3.0.0 / 2.4.0 |
| Integration Method | cocoapods |
| Xcode Version | Xcode 8.0 |
| Repro rate | all the time (100%) |
| Demo project link | n/a |

Issue Description and Steps

after upgrading via pod update from 2.3 to 3.0 / 2.4

Most helpful comment

Reproduced with project which contains mixed objc+swift code.

Fix for mixed projects. In objc:

-    #import <CocoaLumberjack/CocoaLumberjack.h>
+    @import CocoaLumberjack;

for Swift just left import CocoaLumberjack

All 9 comments

+1

@ckrey I use your MQTTClient in Xcode 8 with Swift3 and I also trying to figure out why it does happening this. No cache clearing do the work.

it works if you use Lumberjack 2.3.x

Reproduced with project which contains mixed objc+swift code.

Fix for mixed projects. In objc:

-    #import <CocoaLumberjack/CocoaLumberjack.h>
+    @import CocoaLumberjack;

for Swift just left import CocoaLumberjack

@ckrey Yes, this have resolved.

@max-potapov Unfortunately your workaround doesn't fix the ObjC dependencies libs for Swift proj. So in Swift projects with ObjC dependencies that use lumberjack via cocoapods you're out of control of these workarounds. Or even worse when you try to build Swift lib on top of ObjC lib.

@ckrey I've faced the same using Lock framework that uses CocoaLumberjack as dependency in podspec. Do you plan to resolve that?

Hi guys, I pushed PR(#784). This PR should solve the issue.

@CocoaLumberjack
Could you review my PR?

I'm seeing this against the 3.0 spec... do we know when the mentioned pull request will make it into a published version of the pod?

Still reproduces. Looks like it's not possible to use CocoaLumberjack in project with Objc+Swift3.0

Probably fixed by #784

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nathan187 picture Nathan187  路  7Comments

medisean picture medisean  路  5Comments

tinder-owenthomas picture tinder-owenthomas  路  13Comments

insha picture insha  路  9Comments

trvslhlt picture trvslhlt  路  7Comments