Fix test didn't run when `SDKROOT = macosx;`