• 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
Can't strip internal 'C' function symbols in framework product
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't strip internal 'C' function symbols in framework product


  • Subject: Can't strip internal 'C' function symbols in framework product
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 15 May 2009 13:57:21 -0700

I'm compiling a framework which only requires a few of its many symbols to be externally visible. From the documentation, [1] I understand that Xcode and GCC 4 provide several mechanisms to hide symbols. I believe I've activated all of them, but when I run the 'nm' command on the framework product, I still see symbols of my plain old 'C' functions.

In the code, I have defined Foo() like this:
   __attribute__((visibility("hidden"))) BOOL Foo() {

In the framework's Target > Build Settings, Release Configuration, I have...
- defined EXPORTED_SYMBOLS_FILE and in said file, not mentioned _Foo
- set GCC_SYMBOLS_PRIVATE_EXTERN
- switched on DEPLOYMENT_POSTPROCESSING
- switched on COPY_PHASE_STRIP
- set STRIP_STYLE to 'all'


But when I then Clean, Build and run 'nm' on the produced executable, I ^still^ see in there
0008af7e t _Foo


What else do I need to do?

Thanks,

Jerry Krinock

[1] http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/1-Articles/executing_files.html
_______________________________________________
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


  • Follow-Ups:
    • Re: Can't strip internal 'C' function symbols in framework product
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: unexpected error (0xE800003A) ApplicationVerificationFailed
  • Next by Date: Re: Can't strip internal 'C' function symbols in framework product
  • Previous by thread: Re: -mtune on intel machine
  • Next by thread: Re: Can't strip internal 'C' function symbols in framework product
  • Index(es):
    • Date
    • Thread