jacque wrote: ↑Tue Dec 01, 2020 10:36 pm
I'm sticking with my theory that the wrong stack was being queried from the message box the first time -- but that doesn't explain your results. I'm stumped. Whatever it is, it seems like the stack needs to be poked before it responds.
Confirmed. Elanor did some testing and discovered that if you don't change the default version number, the cRevStandaloneSettings["ios,bundle version"] property does not exist. It only gets created when you change the number from 1.0.0 to something else (or maybe even to itself, I did not try) which is why, when I changed it to 1.2.3. it started working and when I changed it back to 1.0.0 it still worked. (her exact words, which are probably clearer than mine: "1.0.0 is the value that appears if the cRevStandaloneSettings["ios,bundle version"] is empty". Which is why, without actually changing the value I did not see anything. This may have accounted for what happened in your case as well?
She also recommended the method of storing it as a custom property in the stack, as I was doing, and not reading it directly as in the future that information could get stripped from the stack. I think that was the conclusion from previous comments on here as well...
my approach, taken from looking around and doing a bit of research was:
Code: Select all
on SavingMobileStandalone
put the cRevStandaloneSettings["ios,bundle version"] of this stack into tVersion
-- put tVersion into msg
set the cAppVersion of this stack to tVersion
save this stack -- necessary step as this is happening during the build
end SavingMobileStandalone
This works fine. Sometimes these processes of discovery can get quite involved
Mark