Message from discussion
ARC and Non-ARC pods
Date: Mon, 16 Apr 2012 11:17:58 -0700 (PDT)
From: Steven Smith <stevenpsmith...@gmail.com>
To: cocoapods@googlegroups.com
Message-ID: <19001802.902.1334600278476.JavaMail.geo-discussion-forums@vbhy1>
In-Reply-To: <4027873.742.1334596650107.JavaMail.geo-discussion-forums@vbbbg2>
References: <4027873.742.1334596650107.JavaMail.geo-discussion-forums@vbbbg2>
Subject: Re: ARC and Non-ARC pods
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_900_4027823.1334600278474"
------=_Part_900_4027823.1334600278474
Content-Type: multipart/alternative;
boundary="----=_Part_901_23187124.1334600278474"
------=_Part_901_23187124.1334600278474
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
I have come across some more information....it seems that the Pods project
has its IOS Deployment Target set to 4.3. I updated my podfile to indicate:
platform :ios, :deployment_target => "5.1"
But the resulting Pods project is still set for deployment to 4.3. I am
using pods version 0.5.1.
Thanks,
Steve
On Monday, April 16, 2012 1:17:30 PM UTC-4, Steven Smith wrote:
>
> I have a private project that uses ARC. I specify in my podspec
> "s.requires_arc = true". This project also has a dependency on
> AFNetworking (which is memory managed). When I use this private project in
> Project 2 as a dependency, which also uses ARC, I get the following error:
>
> @synthesize of a 'weak' property is only allowed in ARC or GC mode
>
> It seems that the Pod project (generated via pod install) is creating a
> non-arc project but adding compiler flags to my ARC classes. Is there some
> other configuration required that will allow Project 2 to build properly
> and avoid the above error?
>
------=_Part_901_23187124.1334600278474
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
I have come across some more information....it seems that the Pods project =
has its IOS Deployment Target set to 4.3. I updated my podfile to ind=
icate:<div> </div><div>platform :ios, :deployment_target =3D> "5.1"=
</div><div><br></div><div>But the resulting Pods project is still set for d=
eployment to 4.3. I am using pods version 0.5.1. </div><div><br>=
</div><div>Thanks,</div><div>Steve<br><br>On Monday, April 16, 2012 1:17:30=
PM UTC-4, Steven Smith wrote:<blockquote class=3D"gmail_quote" style=3D"ma=
rgin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">=
I have a private project that uses ARC. I specify in my podspec "s.re=
quires_arc =3D true". This project also has a dependency on AFNetwork=
ing (which is memory managed). When I use this private project in Pro=
ject 2 as a dependency, which also uses ARC, I get the following error:<div=
><br></div><div>@synthesize of a 'weak' property is only allowed in ARC or =
GC mode</div><div><br></div><div>It seems that the Pod project (generated v=
ia pod install) is creating a non-arc project but adding compiler flags to =
my ARC classes. Is there some other configuration required that will =
allow Project 2 to build properly and avoid the above error?</div></blockqu=
ote></div>
------=_Part_901_23187124.1334600278474--
------=_Part_900_4027823.1334600278474--