• 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: Source file paths showing up in strings of executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Source file paths showing up in strings of executable


  • Subject: Re: Source file paths showing up in strings of executable
  • From: Jeff Johnson <email@hidden>
  • Date: Wed, 21 Jul 2010 00:23:37 -0500

Hi Daniel.

Anything that uses __FILE__ would cause the source file to be compiled into the executable. Do you NSAssert? The definition of NSAssert includes __FILE__. If you don't want assertions to be complied into the app, you can define NS_BLOCK_ASSERTIONS.

-Jeff


On Jul 21, 2010, at 12:05 AM, Daniel DeCovnick wrote:

> Not sure if this is the right list, but since it seems to be exclusive to Obj-C, I'm sending it here.
>
> Recently I've noticed that running the command line program "strings" against a release build (with debugging or all symbols stripped) reveals several full paths of source code files, specifically .m and .mm files; I haven't seen .cpp or .c files show up. Strangely, it's not all of them, nor can I find any commonality between them. At one point I thought it was from use of a macro we use around NSLog, but some files using it don't show up, and some which don't use it do. I looked for these files in the .pbxproj, but didn't see anything unusual.
>
> Running strings on other programs showed that other developers, including Apple, have this issue. I looked at Terminal, Xcode, Interface Builder, and Twitterrific, and all had 1-5 source file paths. We have a lot more than that though, around 20.
>
> Does anyone know what causes this, and/or how to prevent it?
>
> -Daniel

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Source file paths showing up in strings of executable
      • From: Daniel DeCovnick <email@hidden>
References: 
 >Source file paths showing up in strings of executable (From: Daniel DeCovnick <email@hidden>)

  • Prev by Date: Re: Source file paths showing up in strings of executable
  • Next by Date: Re: Source file paths showing up in strings of executable
  • Previous by thread: Re: Source file paths showing up in strings of executable
  • Next by thread: Re: Source file paths showing up in strings of executable
  • Index(es):
    • Date
    • Thread