• 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: Ld error: symbols in framework not found. How to troubleshoot?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ld error: symbols in framework not found. How to troubleshoot?


  • Subject: Re: Ld error: symbols in framework not found. How to troubleshoot?
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 11 Mar 2008 09:40:32 -0700

Since I couldn't find a troubleshooting tool that told me more than otool, I experimented with the target "strip" settings in the Release configuration of my framework and got it working.

I had thought that gcc/Xcode would never strip Objective-C symbols in a regardless of settings. This was my mistake. It turns out that, although Objective-C symbols can never be hidden from human readers using otool -ov, setting "Strip Style"="All Symbols" (i.e. STRIP_STYLE=all) was the cause of my framework not linking when I attempted to build it into a bundle product.

So, now I am using the following "strip" settings for the Release configuration of my private frameworks:

Strip Debug Symbols During Copy: ON
Deployment Postprocessing:       ON
Strip Linked Product:            ON
Strip Style:                     Non-Global Symbols
Dead Code Stripping:             ON

or, equivalently,

COPY_PHASE_STRIP                 YES
DEPLOYMENT_POSTPROCESSING        YES
STRIP_INSTALLED_PRODUCT          YES
STRIP_STYLE                      non-global
DEAD_CODE_STRIPPING              YES

and this seems to be the most aggressive stripping that can be used without failing to link in downstream product builds.

_______________________________________________
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: 
 >Ld error: symbols in framework not found. How to troubleshoot? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Xcode Editor's Regex now uses PCRE instead of ICU?
  • Next by Date: Re: Subversion and nib files workaround?
  • Previous by thread: Ld error: symbols in framework not found. How to troubleshoot?
  • Next by thread: warning: assignment from distinct Objective-C type
  • Index(es):
    • Date
    • Thread