47

I want to find where is ${EXECUTABLE_NAME} global variable defined in xcode 4.2

Ahmed Said
  • 1,285
  • 5
  • 16
  • 28

3 Answers3

95

[Your target] -> [Build settings] -> [Product name]

brigadir
  • 6,874
  • 6
  • 46
  • 81
  • 9
    this is ${PRODUCT_NAME} not ${EXECUTABLE_NAME} – Ahmed Said Mar 02 '12 at 13:27
  • 37
    `EXECUTABLE_NAME` is generated from [PRODUCT_NAME][EXECUTABLE_PREFIX][EXECUTABLE_SUFFIX]. Details here: https://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html – brigadir Mar 02 '12 at 13:49
  • 2
    I dont think so above answer is correct as my product name XYZ and executable is still ABC.app – Alok C Aug 23 '15 at 05:00
  • 1
    Is it possible to change the Executable name without changing product name? – hariszaman Jan 20 '17 at 12:09
  • question is about changing $(EXECUTABLE_NAME) macro. not chaging ${PRODUCT_NAME} macro executable name field in plist is generated from $(EXECUTABLE_NAME) but where is the $(EXECUTABLE_NAME) macro ?? – Add080bbA Dec 22 '17 at 21:56
12

Adding to above accurate answer

Edit: Targets -> [Your Target Name] -> Build Settings -> Packaging -> Product Name

You can write specific String for Product Name or just copy $(TARGET_NAME) to make same name with '[Your Target Name]'

So your Product Name will be: 'Your Target Name.app'

Fatih Aksu
  • 3,801
  • 2
  • 21
  • 20
5

It's possible to set EXECUTABLE_NAME as user-defined setting.

catlan
  • 25,100
  • 8
  • 67
  • 78