Fixed critical ios build bug where every build was a full rebuild.
Merge pull request #4902 from cb1kenobi/master

Fixed critical ios build bug where every build was a full rebuild.