Re: Multiple versions of an app


Carl Hoefs
 

On Dec 16, 2020, at 1:00 PM, Ben Kennedy <ben-groups@zygoat.ca> wrote:

On 16 Dec 2020, at 11:43 am, Carl Hoefs <newslists@autonomy.caltech.edu> wrote:

How can I use Xcode to produce 8 simultaneously runnable versions of my app? Or would it be more expedient to simply twiddle the Info.plist of copies of the app?
How about defining a new build setting and injecting that into the bundle identifier, then passing its value on the command line?

in project settings:

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

then:

$ xcodebuild BUNDLE_ID_SEQ=1
(etc.)
Yes! This is sheer genius! Works perfectly!

Thanks Ben!
-Carl

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