fix ios build and silence cmake and xcodebuild