> On 2 Dec 2015, at 09:51, Roland King <r...@rols.org> wrote: > > >> On 2 Dec 2015, at 10:39, Gerriet M. Denkmann <gerr...@mdenkmann.de> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com