Auto increment version number in iOS standalone settings

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
pink
Posts: 280
Joined: Wed Mar 12, 2014 6:18 pm

Auto increment version number in iOS standalone settings

Post by pink » Thu Oct 30, 2014 3:56 pm

I'm at that stage where I'm constantly creating new builds to test on my devices. Is there a way to create a Livecode Script which would automatically change the number of the version in the standalone settings panel for iOS?
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Auto increment version number in iOS standalone settings

Post by LCNeil » Thu Oct 30, 2014 4:11 pm

Hi Greg,

Its great to see you're still with us after the conference ;)

The following should give you a means of automatically increasing version number of your iOS stack. This script should go on your stack script and may need adjusted to whatever version numbering system you are using :)

Code: Select all

 on mobileStandaloneSaved
   put the cRevStandaloneSettings["ios,bundle version"] of this stack into tVersion
   set the itemdel to "."
   add 1 to item 3 of tVersion
   set the cRevStandaloneSettings["ios,bundle version"] of this stack to tVersion
end mobileStandaloneSaved
Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.runrev.com
--

pink
Posts: 280
Joined: Wed Mar 12, 2014 6:18 pm

Re: Auto increment version number in iOS standalone settings

Post by pink » Thu Oct 30, 2014 9:54 pm

perfect thanks!
Greg (pink) Miller

MadPink, LLC
I'm Mad, Pink and Dangerous to Know

Post Reply