*/*: fix build with Frameworks 6.28.0
(cherry picked from commit d4fda177a6f39fc5b4b8c4b1e497330eaa687716)