• 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: "_OBJC_CLASS_$_*" symbols not being marked public in i386 builds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >"_OBJC_CLASS_$_*" symbols not being marked public in i386 builds (From: Jens Alfke <email@hidden>)
 >Re: "_OBJC_CLASS_$_*" symbols not being marked public in i386 builds (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: "_OBJC_CLASS_$_*" symbols not being marked public in i386 builds
  • Next by Date: start with Xcode 5.1.1
  • Previous by thread: Re: "_OBJC_CLASS_$_*" symbols not being marked public in i386 builds
  • Next by thread: start with Xcode 5.1.1
  • Index(es):
    • Date
    • Thread