onnxruntime/docs/get-started/with-obj-c.md
Cassie a0f3e30de6
Docs update: updated nav, get started sections, home page, apis (#9060)
* initial setup and rename "how to" to "setup"

* move API to main nav

* move api to main nav

* add get starated, rework nav order

* rename to install move mds out of install section

* update api nav and home page

* add install docs and python qs updates

* python get started work

* remove c and obj c for now

* move java, python, and obj-c docs under api folder

* move java api html to iframe (ugh)

* remove api docs w/o details, move api text getstar

* remove api docs wo detail updates get started

* remvoe iframes

* move eco system to main nav

* fix api buttons

* added more examples moved intro to ORT

* fix links

* fix get started titles

* fix get started titles

* fix more links

* fix more links

* more link fixes

* fix nav remove inferencing and training subnav

* fix top nav remove inference and training nav

* fix title

* fix tutorials nav hierarchy

* fix python api button

* add tenorflow keras example

* fix quickstart toc

* add imports fix spacing

* fix links

* update nav and python get started page

* move ort training example, add coming soon for iot

* update C# get started

* fix spacing on quantization

* Add some js get started content

* fix formatting

* fix typo

* removed onnx-pytorch and onnx-tf

* updated pip install torch and added links iot page

* added pytorch tutorial heirarchy

* updated web to docs soon added release blog link

* add web link
2021-09-15 16:23:42 -05:00

47 lines
No EOL
1.1 KiB
Markdown

---
title: Objective-C
parent: Get Started
nav_exclude: true
---
# 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
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](../tutorials/mobile/mobile/initial-setup.md#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/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>
```
## 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).