mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-13 18:08:13 +00:00
### Description <!-- Describe your changes. --> - Update Android build instructions. - Remove references to "mobile" packages with reduced operators and minimal build which have been removed in 1.19. In particular, these packages: - onnxruntime-mobile-c/objc (iOS) - onnxruntime-mobile (Android) https://edgchen1.github.io/onnxruntime/docs/ ### 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. --> Update and remove obsolete documentation.
47 lines
No EOL
1.1 KiB
Markdown
47 lines
No EOL
1.1 KiB
Markdown
---
|
|
title: Objective-C
|
|
parent: Get Started
|
|
nav_order: 7
|
|
---
|
|
# Get started with ORT for Objective-C
|
|
{: .no_toc }
|
|
|
|
ONNX Runtime provides an Objective-C API for running ONNX models on iOS devices.
|
|
|
|
## Contents
|
|
{: .no_toc }
|
|
|
|
* TOC placeholder
|
|
{:toc}
|
|
|
|
## Supported Versions
|
|
|
|
See iOS [compatibility info](../reference/compatibility.md).
|
|
|
|
## Builds
|
|
|
|
The artifacts are published to CocoaPods.
|
|
|
|
| Artifact | Description | Supported Platforms |
|
|
|-|-|-|
|
|
| onnxruntime-objc | CPU and CoreML | iOS |
|
|
|
|
Refer to the [installation instructions](../install/index.md#install-on-ios).
|
|
|
|
## Swift Usage
|
|
|
|
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/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>
|
|
```
|
|
|
|
## API Reference
|
|
|
|
[Objective-C API Reference](../api/objectivec/index.html)
|
|
|
|
## Samples
|
|
|
|
See the iOS examples [here](https://github.com/microsoft/onnxruntime-inference-examples/tree/main/mobile). |