0

I wants to update the build number in plist file according to the scheme which is currently running in xcode project . Ex: If i am running with Sandbox scheme my App version will be {VERSION_NUM}S and if I run with Production scheme App version wil be {VERSION_NUM}P.

So Can you please suggest me how can we retrieve Scheme

Sylwester
  • 47,942
  • 4
  • 47
  • 79
Lakshmi Reddy
  • 313
  • 5
  • 17

1 Answers1

0

How about change plist file with PlistBuddy at Edit Scheme->Build->Pre-actions? enter image description here

Here is solution for edit plist in script -> Insert Subversion revision number in Xcode

My suggest is making script for each scheme.

By the way I found article for scheme name. -> Get current Scheme Name from Run Script Phase

Hope this helps.

Community
  • 1
  • 1
toka
  • 26
  • 4
  • I would like to get the name of the Scheme , Can you suggest me , I have already updated the plist file with Plistbuddy. – Lakshmi Reddy Jul 09 '15 at 09:09
  • yes , But my requirement is to fully automate the scripts too , we should know which script to run right ? , that could be possible if we know scheme . do u have any idea – Lakshmi Reddy Jul 09 '15 at 09:40