Re: Multiple versions of an app


Ben Kennedy
 

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

-ben

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