Re: Multiple versions of an app


Alex Zavatone
 

A better explanation is that the info.plist uses that build setting, that environment variable as the name of the executable.  

There’s a little relationship between $(TARGET_NAME), $(PRODUCT_NAME) and $(EXECUTABLE_NAME).  These are defined in your target’s build settings and used in various places, such as our friendly info.plist.

These are good resources to help you make sense of them. Expect a few to be missing.


Make sure to save this as a PDF for future reference.

Looking forward ti hearing about the end result of this product you’re creating.

Alex Zavatone

On Dec 16, 2020, at 6:15 PM, Carl Hoefs <newslists@...> wrote:

Yes - $(TARGET_NAME) is the correct identifier! 

Setting this also changes the executable name under ../MacOS and CFBundleName and CFBundleExecutable in the Info.plist.

Thx!
-Carl


On Dec 16, 2020, at 1:58 PM, Alex Zavatone via groups.io <zav@...> wrote:

That’s in your Build Settings 

$(TARGET_NAME)

<PastedGraphic-2.png>

On Dec 16, 2020, at 3:56 PM, Carl Hoefs <newslists@...> wrote:

On Dec 16, 2020, at 1:33 PM, Carl Hoefs <newslists@...> wrote:

in project settings:

BUNDLE_ID_SEQ="0"
PRODUCT_BUNDLE_IDENTIFIER="com.example.foo.$(BUNDLE_ID_SEQ)"

then:

$ xcodebuild BUNDLE_ID_SEQ=1
(etc.)


Could this way also be used to name the app itself? 

Something like: PRODUCT_EXECUTABLE_NAME="MyApp$(BUNDLE_ID_SEQ)"
to generate MyApp1.app, MyApp2.app, etc...

-Carl




Join xcode@apple-dev.groups.io to automatically receive all group messages.