How to get the integration number from the build script

I am trying to configure xcode bots to build my iOS apps:

I would like to set the build number of the app to be the same number of the Bots integration number but I cannot figure out how to do it.

Is there any evirorment variable that my prebuild script can read?


Thanks


MrWanny

Mac OS X (10.7.5)

Posted on Oct 27, 2013 2:45 PM

Reply
2 replies

Oct 29, 2013 4:58 PM in response to mrwanny

First thing to do is to test what environment vars are passed to the script during building.

add an

echo `env`

to your script phase,

run two builds and look at what is passed & see if there is anything that changes between the builds.


If you don't see anything that could be the iteration number, then you should probably file an enhancement request (bug) with Apple.


HTH

- Leland

Oct 29, 2013 5:06 PM in response to Leland Wallace

Unfotunately " printenv | grep 18 " where the 18 is the build number does not return anything.

I did some more research in the logs and it looks like XCSBuildService receive a message with the integration number as params


[XCSBuildService.m:388 7194b310 +0ms] Got BotRun entity from collabd with GUID

...

guid = "4b455e14-b6e4-4c89-b20d-8b34047c5b48";

xcsbuildd.log: integration = 18;

xcsbuildd.log- isBlogEnabled = 0;

...


than it creates a botRunInfoPlist but unfortunately the integration number is not there any more :-(


I'll create a bug report


Thanks

mrwanny

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to get the integration number from the build script

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.