Re: Xcode warning from linking to a third-party framework in both app and in framework included in app?
Re: Xcode warning from linking to a third-party framework in both app and in framework included in app?
- Subject: Re: Xcode warning from linking to a third-party framework in both app and in framework included in app?
- From: Steve Mykytyn <email@hidden>
- Date: Tue, 18 Aug 2015 16:19:57 -0700
Turns out the way to handle this seems to be:
1. Use an Other Linker Flag: "-weak_framework Parse" in the private
framework target
2. Don't link to Parse in the Linker Build phase in the private framework
target
3. Link as normal to Parse in the main app target.
Clean the build folders all around, do the builds and the warnings are all
gone.
At least on Xcode 6.4...
On Tue, Aug 18, 2015 at 10:23 AM, Jens Alfke <email@hidden> wrote:
>
> On Aug 18, 2015, at 8:48 AM, Steve Mykytyn <email@hidden> wrote:
>
> I'm linking to the Parse.com <http://parse.com/> frameworks in both my
> app and in a private
> framework of my own included in the app. This generates the linker warning
> below.
>
>
> If Parse provides their library in the form of a true (dynamic) framework,
> you should use that and have both your app and your private framework link
> against it.
>
> If they only provide a static framework/library, you can create a target
> that builds that into a dynamic framework and exports the necessary
> symbols, then do the above.
>
> —Jens
>
_______________________________________________
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