> For the complete documentation index, see [llms.txt](https://legacy-docs.usesmileid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.usesmileid.com/integration-options/mobile/react-native/ios-setup.md).

# iOS Setup

## IMPORTANT <a href="#smile-config-file" id="smile-config-file"></a>

{% hint style="danger" %}
This SDK is deprecated and will receive limited support. Please adopt the v10 SDK: [https://github.com/smileidentity/docs/blob/main/mobile/react-native/broken-reference/README.md](https://github.com/smileidentity/docs/blob/main/mobile/react-native/broken-reference/README.md "mention")
{% endhint %}

{% hint style="info" %}
**Note:** The React Native iOS SDK only runs on 64-bit devices. If you build your app with 32-bit support, check the device's architecture before using this API. this affects most simulators but not devices in current usage
{% endhint %}

#### Cocoapods

Close your XCode if your project is open and from the terminal, navigate to the iOS folder in the flutter project and run

```
pod install
```

If it wasn't present before, once done this will create a \<Your Project>.xcworkspace open this in XCode .

### Smile Config

#### 1. Place the smile\_config.json inside the ios/Runner folder

#### 2.Open XCode and click on the project navigator and select your project file (usually runner)

![](/files/3CSwFpqihKjfKaXgYbqh)

#### 3. Click the target (usually runner) and click Build Phases and under copy bundle resources click the plus icon and navigate to your project location with smile\_config.json and pick the file

![](/files/yQHrpMAZSoXjBLYeGWKL)

That's it IOS is ready

#### NB: XCode 12 and above

There is some incompatibilities that may exist between when using XCode 12 as listed [here](https://github.com/facebook/react-native/issues/31179#issuecomment-829536845). This error may appear as *`Undefined symbols for architecture x86_64: "Swift._ArrayBuffer._copyContents...".`*

To resolve this remove the line\
`$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)`

In your project's (*not target*) as shown below

![XCODE project's configuration.](/files/-MdDYsS4Hz0rrWARM78-)

That's it. iOS is done!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://legacy-docs.usesmileid.com/integration-options/mobile/react-native/ios-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
