2021-06-02 04:21:41 +00:00
---
title: Objective-C API
parent: API docs
grand_parent: Reference
---
# ONNX Runtime Objective-C API
2021-07-21 21:25:04 +00:00
{: .no_toc }
2021-06-02 04:21:41 +00:00
2021-07-21 21:25:04 +00:00
ONNX Runtime provides an Objective-C API for running ONNX models on iOS devices.
2021-06-02 04:21:41 +00:00
2021-07-21 21:25:04 +00:00
## Contents
{: .no_toc }
2021-06-02 04:21:41 +00:00
2021-07-21 21:25:04 +00:00
* TOC placeholder
{:toc}
2021-06-02 04:21:41 +00:00
2021-07-21 21:25:04 +00:00
## Supported Versions
iOS 11+.
## Builds
The artifacts are published to CocoaPods.
| Artifact | Description | Supported Platforms |
|-|-|-|
| onnxruntime-mobile-objc | CPU and CoreML | iOS |
Refer to the [installation instructions ](../../how-to/mobile/initial-setup.md#iOS ).
## Swift Usage
2021-06-02 04:21:41 +00:00
2021-07-21 21:25:04 +00:00
The Objective-C API can be called from Swift code.
To enable this, use a bridging header (more info [here ](https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift )) that imports the ORT Objective-C API header.
```objectivec
// In the bridging header, import the ORT Objective-C API header.
#import <onnxruntime.h>
2021-06-02 04:21:41 +00:00
```
2021-07-21 21:25:04 +00:00
## API Reference
[Objective-C API Reference ](../../../objectivec/index.html )
## Samples
See the iOS examples [here ](https://github.com/microsoft/onnxruntime-inference-examples/tree/main/mobile ).