Re: How to import a Framework
Re: How to import a Framework
- Subject: Re: How to import a Framework
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 02 Dec 2015 10:12:49 +0700
> On 2 Dec 2015, at 09:51, Roland King <email@hidden> wrote:
>
>
>> On 2 Dec 2015, at 10:39, Gerriet M. Denkmann <email@hidden> wrote:
>>
>> I just made a Framework (Xcode 7.1), called ProcArgFramework.
>> I copied it into /Library/Frameworks.
>>
>> In some other Project I added:
>>
>> @import ProcArgFramework
>>
>> But Xcode says: “Module ProcArgFramework not found”.
>>
>> I tried all sorts of variations of this import-line. But all to no avail.
>>
>> How can I import my framework?
>>
>> Gerriet.
>>
>
> What makes you think Xcode looks in /Library/Frameworks for framework imports?
“When you build an application or other executable, the compiler looks for frameworks in/System/Library/Frameworks as well as any other location specified to the compiler.”
> I’d assume there’s a build setting somewhere with a framework search path, perhaps finding and setting that might help.
>
> Or just drag the thing onto your project from the finder and see if Xcode does the right thing, it occasionally does.
>
> If it’s your own framework you can just add the project as a sub project in your build and have it build it locally, unless you particularly want to link with the system-installed one.
I ended up with adding my ProcArgFramework to: Build Phases → Link Binary With Libraries.
I should have thought about this before.
But thanks for pushing me in the right direction. Very much appreciated. I did spend hours trying all sort of #import variations.
Kind regards,
Gerriet.
_______________________________________________
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