diff --git a/impeller/renderer/backend/metal/device_buffer_mtl.mm b/impeller/renderer/backend/metal/device_buffer_mtl.mm index 5fdb783431bec..1a94831fe35d8 100644 --- a/impeller/renderer/backend/metal/device_buffer_mtl.mm +++ b/impeller/renderer/backend/metal/device_buffer_mtl.mm @@ -97,8 +97,10 @@ if (label.empty()) { return false; } - [buffer_ addDebugMarker:@(label.c_str()) - range:NSMakeRange(range.offset, range.length)]; + if (@available(macOS 10.12, *)) { + [buffer_ addDebugMarker:@(label.c_str()) + range:NSMakeRange(range.offset, range.length)]; + } return true; }