From 3bd93d6e64ef76080f10e75fe15aa926d93d78d4 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Wed, 8 Jan 2025 14:27:09 -0800 Subject: [PATCH] API_AVAILABLE(macos(15), ios(18)) --- onnxruntime/core/providers/coreml/model/model.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/coreml/model/model.mm b/onnxruntime/core/providers/coreml/model/model.mm index 5211b89ec1..f78a8f948a 100644 --- a/onnxruntime/core/providers/coreml/model/model.mm +++ b/onnxruntime/core/providers/coreml/model/model.mm @@ -369,7 +369,7 @@ void ProfileComputePlan(NSURL* compileUrl, MLModelConfiguration* config) { #define HAS_COREMLOPTIMIZATIONHINT 0 #endif -API_AVAILABLE_COREML8 +API_AVAILABLE(macos(15), ios(18)) void ConfigureOptimizationHints(MLModelConfiguration* config, const CoreMLOptions& coreml_options) { #if HAS_COREMLOPTIMIZATIONHINT MLOptimizationHints* optimizationHints = [[MLOptimizationHints alloc] init];