Remove some build phases cause errors