Re: Multiple versions of an app


Carl Hoefs
 

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.