2021-06-02 04:21:41 +00:00
---
2021-09-15 21:23:42 +00:00
title: Objective-C
parent: Get Started
2021-12-13 20:21:25 +00:00
nav_order: 7
2021-06-02 04:21:41 +00:00
---
2021-09-15 21:23:42 +00:00
# Get started with ORT for Objective-C
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
2024-08-15 06:28:19 +00:00
See iOS [compatibility info ](../reference/compatibility.md ).
2021-07-21 21:25:04 +00:00
## Builds
The artifacts are published to CocoaPods.
| Artifact | Description | Supported Platforms |
|-|-|-|
2024-08-15 06:28:19 +00:00
| onnxruntime-objc | CPU and CoreML | iOS |
2021-07-21 21:25:04 +00:00
2021-12-11 00:22:10 +00:00
Refer to the [installation instructions ](../install/index.md#install-on-ios ).
2021-07-21 21:25:04 +00:00
## 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.
2022-06-07 17:42:20 +00:00
To enable this, use a bridging header (more info [here ](https://developer.apple.com/documentation/swift/importing-objective-c-into-swift )) that imports the ORT Objective-C API header.
2021-07-21 21:25:04 +00:00
```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
2021-09-15 21:23:42 +00:00
[Objective-C API Reference ](../api/objectivec/index.html )
2021-07-21 21:25:04 +00:00
## Samples
2021-09-15 21:23:42 +00:00
See the iOS examples [here ](https://github.com/microsoft/onnxruntime-inference-examples/tree/main/mobile ).