Migrate GitHub Actions away from deprecated `macos-14` image (#33778)
### Description
<!-- Describe your changes. -->
mac.yml:
- Update Objective-C static analysis job image to `macos-15`.
- Fix new static analysis warnings from clang-tidy 18.
react_native.yml:
- Update iOS job images to `macos-15`.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
The `macos-14` image will no longer be supported by November 2, 2026.
See the deprecation notice:
https://github.com/actions/runner-images/issues/13518
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>