swap build phase