Solve the error when build project for iOS simulator.