clint
clint

Reputation: 1946

to build iOS apps from command line with different info.plist files

I want to build my iOS app from command line along with parameters that i can give to use the appropriate info.plist file. Can this thing be established? ie. giving different info.plist files for creating two different app packages for the same project and that too from command line.

Upvotes: 2

Views: 1362

Answers (1)

Vladimir Obrizan
Vladimir Obrizan

Reputation: 2593

Create two (or more) targets in your project: target1, target2.

Create two plists in your project, but assign different target membership for them.

In command line:

xcodebuild -project projectname -target target1
xcodebuild -project projectname -target target2

This will build the same project but with different plists.

Here is a reference for xcodebuild's command line: xcodebuild.

References for targets: Xcode Target.

Upvotes: 3

Related Questions