Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
CocoaLumberjack and ARC
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Davy De Waele  
View profile  
 More options Jan 2 2012, 7:19 pm
From: Davy De Waele <ddewa...@gmail.com>
Date: Mon, 2 Jan 2012 16:19:33 -0800 (PST)
Local: Mon, Jan 2 2012 7:19 pm
Subject: CocoaLumberjack and ARC

Hi,

I have an application targetted for iOS 4 and 5 that was using an "old"
version of CocoaLumberjack. Everything was running great except for 1 small
memory leak.
After that leak was fixed (very quickly) by the devs
(https://github.com/robbiehanson/CocoaLumberjack/issues/14), I decided to
start using the latest version.

And that's when my troubles began.... AFAIK, CocoaLumberjack uses ARC now
and apparently the version I was working with earlier didn't

As I'm simply copying the CocoaLumberjack source files in my project, I was
facing issues (as I'm not using ARC and have no immediate desire to convert
my entire project).
I was getting the issue described here
: https://github.com/robbiehanson/CocoaLumberjack/issues/11.
Setting the "-fobjc-arc"  flag on the CocoaLumberjack files didn't resolve
the issue.

Is there any way I can get this to work without converting my project to
ARC?

Regards,
Davy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Sedlaczek  
View profile  
 More options Jan 3 2012, 3:52 am
From: Michael Sedlaczek <mich...@gonecoding.com>
Date: Tue, 3 Jan 2012 00:52:17 -0800 (PST)
Local: Tues, Jan 3 2012 3:52 am
Subject: Re: CocoaLumberjack and ARC

Hi Davy,

The flag for the CocoaLumberjack files should be "-fno-objc-arc" (the "no"
makes the difference). That should would just fine.

Cheers,
Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robbie Hanson  
View profile  
 More options Jan 3 2012, 3:55 am
From: Robbie Hanson <robbiehan...@deusty.com>
Date: Tue, 3 Jan 2012 00:55:49 -0800
Local: Tues, Jan 3 2012 3:55 am
Subject: Re: CocoaLumberjack and ARC

The wiki has some information concerning ARC, including instructions on how to include ARC files in a non-arc project, as well as which branches/tags are pre-arc.

https://github.com/robbiehanson/CocoaLumberjack/wiki/ARC

> Setting the "-fobjc-arc"  flag on the CocoaLumberjack files didn't resolve the issue.

This may have to do with the compiler you're using. See the wiki article for more information.

Let me know if you have any questions or run into any issues. I have little doubt you won't be the only one to face these issues. So any additional troubleshooting / tips should I'd like to add to the wiki.

-Robbie Hanson

On Jan 2, 2012, at 4:19 PM, Davy De Waele wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davy De Waele  
View profile  
 More options Jan 3 2012, 7:12 am
From: Davy De Waele <ddewa...@gmail.com>
Date: Tue, 3 Jan 2012 04:12:33 -0800 (PST)
Local: Tues, Jan 3 2012 7:12 am
Subject: Re: CocoaLumberjack and ARC

Thx for the quick reply ! Missed that Wiki article.... I'll provide
feedback in a couple of hours...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davy De Waele  
View profile  
 More options Jan 3 2012, 12:10 pm
From: Davy De Waele <ddewa...@gmail.com>
Date: Tue, 3 Jan 2012 09:10:25 -0800 (PST)
Local: Tues, Jan 3 2012 12:10 pm
Subject: Re: CocoaLumberjack and ARC

Hi,

I have the correct development and deployment requirements for ARC as
mentioned in the Wiki article (using Apple LLVM compiler 3.0), and have set
the flag on the cocoalumberjack classes but I'm facing the *dyld: lazy
symbol binding failed: Symbol not found: _objc_storeStrong* issue described
here

http://stackoverflow.com/questions/8101296/cocoalumberjack-error-symb...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robbie Hanson  
View profile  
 More options Jan 3 2012, 1:12 pm
From: Robbie Hanson <robbiehan...@deusty.com>
Date: Tue, 3 Jan 2012 10:12:39 -0800
Local: Tues, Jan 3 2012 1:12 pm
Subject: Re: CocoaLumberjack and ARC

I'm glad they quoted me on the stack overflow article. I had already forgot what I had discovered when I was testing this particular issue earlier.

> There seems to be a bug in (maybe) the LLVM compiler. Here's what I've discovered:

> If you have an Xcode project without ARC turned on by default, and you have a file that uses ARC (via -fobjc-arc), and that file attempts to alloc/init stuff within '+ (void)initialize', then it will blow up at runtime.

> It seems to work, however, if you convert the project to ARC…

When I wrote that I was referring to the Apple LLVM 3.0 version. Haven't tested yet on the 3.1 betas…

But this is a rather difficult problem to get around, and one that several people are encountering. It may be worth it to create a 1.2.X branch (that's still non-arc), and cherry-pick any major bug-fixes into it.  At least until this bug gets fixed (in a non beta release of Xcode).

-Robbie Hanson

On Jan 3, 2012, at 9:10 AM, Davy De Waele wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robbie Hanson  
View profile  
 More options Jan 3 2012, 1:17 pm
From: Robbie Hanson <robbiehan...@deusty.com>
Date: Tue, 3 Jan 2012 10:17:53 -0800
Local: Tues, Jan 3 2012 1:17 pm
Subject: Re: CocoaLumberjack and ARC

Just pushed a 1.2.X branch that's non-arc.  I cherry picked the memory leak fix too.

-Robbie Hanson

On Jan 3, 2012, at 9:10 AM, Davy De Waele wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »