Re: Ld error: symbols in framework not found. How to troubleshoot?
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