updated build setting for macos and ios test target to warn about unreachable code