Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 591 Vote(s) - 3.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where are ${EXECUTABLE_NAME} and ${PRODUCT_NAME} defined

#1
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.
Reply

#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.
Reply

#3
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][1]][1]


**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.

[EXECUTABLE_NAME]:

[To see links please register here]


## 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.

[1]:
Reply

#4
**Xcode `${<variable_name>}` syntax**

Xcode variable can be defined on different level and the `Resolved` one is used. You can use `Build Settings -> Levels` tab to manage it

[![enter image description here][1]][1]

All variables are listen in [`Build Settings`][2]. Also every setting has it's own declaration
```
Product Name - PRODUCT_NAME
```

These setting are saved in `buildSettings` block of
```
<project_name>.xcodeproj/project.pbxproj
```

You can use Search view to find any variable and `Help Inspector` to find declaration and other useful information

<img src="https://i.stack.imgur.com/cQYII.png" height="150"/>

Some of settings are not exposed by Xcode
```
EXECUTABLE_NAME
```

But you are able to get or even to override the value using `User-Defined Settings`

<img src="https://i.stack.imgur.com/sYtdo.png" height="150"/>

```
reader_EXECUTABLE_NAME = $(EXECUTABLE_NAME)
```
```
EXECUTABLE_NAME = $EXECUTABLE_PREFIX$PRODUCT_NAME$EXECUTABLE_SUFFIX
```

[\[SWIFT_MODULE_NAME, PRODUCT_MODULE_NAME, PRODUCT_NAME, EXECUTABLE_NAME\]][3]

[\[TARGET_NAME\]][4]


[1]:

[2]:

[To see links please register here]

[3]:

[To see links please register here]

[4]:

[To see links please register here]

Reply

#5
Specifically about how `${PRODUCT_NAME}` gets defined in terms of order:

1. It's originally defaulted to the target's name: `$(TARGET_NAME)`
2. You can reset it in 'build settings' by searching for **Product Name**

Note: If any value was derived off of `${PRODUCTS_NAME}` and you change it to `some-constant-value` then it's no longer going to be a computed value.

e.g. if you change the value of `CFBundleName` from its default `${PRODUCT_NAME}` to something like `My cool App` then your app's name on the springboard will show up as 'My cool App'. It will no longer show up as 'whatever your target's name is'
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through