Re: ARC and 10.6
Re: ARC and 10.6
- Subject: Re: ARC and 10.6
- From: Georg Seifert <email@hidden>
- Date: Mon, 06 Feb 2012 12:51:39 +0100
>> I try to convert my app to use xCode 4.2 and ARC. My app uses several custom frameworks and plugins. I used the migration tool to enable ARC for all of them.
>>
>> As I still want to support Snow Leopard, I set the SDKROOT to 10.7 and the Deployment Target to 10.6. But if I do that, on the startup of the app, I get this in the console:
>>
>> objc[9438]: Class __ARCLite__ is implemented in both [..]framework1 and [..]framework2. One of the two will be used. Which one is undefined. // removed the paths to frameworks...
>> objc[9438]: Class __ARCLite__ is implemented in both [..]framework1 and [..]framework3. One of the two will be used. Which one is undefined.
>> objc[9438]: Class __ARCLite__ is implemented in both [..]framework1 and [..]framework4. One of the two will be used. Which one is undefined.
>>
>> In the beginning I had only a few but now after converting all of my bundles (around 20) I have 10 lines of those. The ARCLite stuff seems to be the implementation to get ARC to work on Snow Leopard.
>
> That's right. The warning is annoying but otherwise harmless. The machinery that makes ARC code work on older deployment targets was designed for apps, and doesn't work well in frameworks. A future developer tools release should fix this.
Is there a way to remove the code (for __ARCLite__) from the object files? Like you can remove the code for a certain architecture?
Georg
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden