[TIMOB-15711] Fixed sync issues with xcodebuild and optimize images runn...

...ing at the same time.