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

2019-01-21 05:19发布

问题:

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.

回答1:

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.

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.



回答2:

I think the $ represents the variable productName & executableName as the $ is used in unix. The variables are set in the build setting of the application. So you should not change the product name directly in the plist file. Instead, go to build settings, search for product name and change it.