Re: "_OBJC_CLASS_$_*" symbols not being marked public in i386 builds
Re: "_OBJC_CLASS_$_*" symbols not being marked public in i386 builds
- Subject: Re: "_OBJC_CLASS_$_*" symbols not being marked public in i386 builds
- From: Jens Alfke <email@hidden>
- Date: Mon, 11 Aug 2014 11:38:57 -0700
Fixed it! For the record, here's the deal.
First I web-searched [ignoring Objc2 Class symbol in i386 export list]. (Pro tip: googling for error messages is awesomely useful.) The top hit was a copy on opensource.apple.com of the linker source file that emits that warning. Part of the test that triggers that warning is a variable "fObjCABIVersion2Override". Ha! That sounded exactly like what I wanted, so I searched back and found that this variable is set when parsing the command-line flag "-objc_abi_version" if the next argument is "2".
So the fix is to set the "Single-Object Prelink Flags" build setting to "-objc_abi_version 2". Now it correctly exports the symbols, and my app links.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden