Re: Xcode Framework wrapper for Library ( Exposing library headers)
Re: Xcode Framework wrapper for Library ( Exposing library headers)
- Subject: Re: Xcode Framework wrapper for Library ( Exposing library headers)
- From: Jens Alfke <email@hidden>
- Date: Mon, 06 Feb 2017 14:22:16 -0800
> On Feb 6, 2017, at 2:04 PM, Mr steve davis <email@hidden> wrote:
>
> Undefined symbols for architecture x86_64:
> "_OBJC_CLASS_$_MyLibrary", referenced from:
> objc-class-ref in ViewController.o
> ld: symbol(s) not found for architecture x86_64
This is a link error, not a compile error, so it has nothing to do with headers. Basically the linker can’t find the MYLibrary class anywhere.
Either your app target isn’t linking with your framework target (look in Build Phases | Link Binary With Libraries), or the framework target doesn’t contain the class MYLibrary, or the framework isn’t exporting the MYLibrary class symbol (unlikely, since framework targets export all symbols by default.)
—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