46

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

Ahmed Said
  • 1,275
  • 5
  • 16
  • 27

3 Answers3

87

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

brigadir
  • 6,493
  • 4
  • 45
  • 79
  • 7
    this is ${PRODUCT_NAME} not ${EXECUTABLE_NAME} – Ahmed Said Mar 02 '12 at 13:27
  • 34
    `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 – Alix 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
11

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,683
  • 2
  • 20
  • 19
4

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

catlan
  • 24,726
  • 8
  • 66
  • 76