Fix the logic to suppress all warnings for iOS CI build. [ci skip]