Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are ${EXECUTABLE_NAME} and ${PRODUCT_NAME} defined

Where can I find information on how to modify these

  • ${EXECUTABLE_NAME}
  • ${PRODUCT_NAME}

These are only displayed in .plist file but where are the actual values.

If we can directly modify what ever we want in .plist why we need these.

I am new that's why I'm having problem understanding these, I also looked into apple information Property list key reference but didn't find these ${} values.

like image 758
Hazel Sophie Avatar asked Oct 24 '22 04:10

Hazel Sophie


People also ask

Where is PRODUCT_NAME defined Xcode?

The PRODUCT_NAME is defined in the target's Build Settings in the Packaging section. It has the same name by default as your project.

What is $( PRODUCT_NAME?

PRODUCT_NAME is a build setting. One build setting can depend on another. So, you need a build setting that provides a value to the compiler such that it can influence your code. The Preprocessor Macros build setting does that. So, add a new macro such as PRODUCT_NAME=$(PRODUCT_NAME).

How do I change the product name in Xcode?

Go to Project -> Edit Project Settings -> Select Build tab -> look for productName in packaging category. Change it to what you want.


1 Answers

The PRODUCT_NAME is defined in the target's Build Settings in the Packaging section. It has the same name by default as your project.

screenshot

Edit:

While PRODUCT_NAME is by default the name of the Target (MyDemoApp in this case). The EXECUTABLE_NAME is a concatenation of:

$EXECUTABLE_PREFIX, $PRODUCT_NAME and $EXECUTABLE_SUFFIX.

See the reference of EXECUTABLE_NAME for details.

Update

The new reference can be found here http://help.apple.com/xcode/mac/8.3/#/itcaec37c2a6

EXECUTABLE_NAME
Specifies the name of the binary the target produces.

like image 195
Besi Avatar answered Oct 25 '22 18:10

Besi