• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to import a Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to import a Framework
      • From: Jens Alfke <email@hidden>
References: 
 >How to import a Framework (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to import a Framework (From: Roland King <email@hidden>)

  • Prev by Date: Re: How to import a Framework
  • Next by Date: Re: iOS: Using AppDelegate as an app-wide singleton
  • Previous by thread: Re: How to import a Framework
  • Next by thread: Re: How to import a Framework
  • Index(es):
    • Date
    • Thread