I've just had the embarrassing situation where my Apple approved binary was using spritebuilder generate ccbi files for the wrong branch of my code.
Now I know it's basically my fault for just swapping branched in my dev area and not checking things before submitting, but I think there should be a solution.
Basically, when we run SB, and hit the "Publish" button, SB updates a bunch of files in the Published-iOS folder which is not put under source control for Xcode. So when I built a new version of my binary, having done a checkout using git, the checkout didn't overwrite anything in Published-iOS and the new binary took on whatever happened to be there.
Sure, I should have retested every part of the app, and I failed to do this; my bad. What would have saved me though, would be the ability to set up a build phase script to tell SB to re-publish the files in Published-iOS every time I do an archive/release build. This would force the archive operation to always use the contents of the git-controlled files in the SB project.
So, is there a way to script SB to do a publish?