I want to find where is ${EXECUTABLE_NAME} global variable defined in xcode 4.2
Asked
Active
Viewed 2.8k times
47
-
look at this post http://stackoverflow.com/questions/3437330/bundle-name-executable-name-product-name-anything-else – Vignesh Mar 02 '12 at 05:56
-
1not useful. I want to find this variable in xcode. I already know what it is. – Ahmed Said Mar 02 '12 at 06:13
3 Answers
95
[Your target] -> [Build settings] -> [Product name]

brigadir
- 6,874
- 6
- 46
- 81
-
9
-
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
-
2I 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
-
1Is 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