> For the complete documentation index, see [llms.txt](https://docs.proudnet.com/proudnet.eng/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.proudnet.com/proudnet.eng/proudnet/2.setting/unity3d/ios-build.md).

# iOS Build

## Building iOS

<figure><img src="/files/fUHT01RrQUPTzyQACaPC" alt=""><figcaption></figcaption></figure>

Select <mark style="color:orange;">File</mark> -> <mark style="color:orange;">Build Settings</mark> for the project you worked on on your Mac.

<figure><img src="/files/zhF1nehpI2oddPtnPdVK" alt=""><figcaption></figcaption></figure>

In <mark style="color:orange;">Build Settings</mark>, select iOS from the <mark style="color:orange;">Platform</mark> menu, then click <mark style="color:orange;">switch Platform</mark>.

<figure><img src="/files/xUQIYnp0p7N411KPqVds" alt=""><figcaption></figcaption></figure>

When the platform changes, click the ***Build*** button to select a storage location for the Build file.

(The Build folder is the file you created with **New Folder**.)

<figure><img src="/files/hRzHGNaacDwRTwsTOxie" alt=""><figcaption></figcaption></figure>

After checking the Xcode project file created through Unity

<figure><img src="/files/VZWhByfIZhQaOXYvulez" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Lzcn6uLYNY1sGQzVpI2S" alt=""><figcaption></figcaption></figure>

In the folder where ProudNet exists, copy all the files in the <mark style="color:orange;">ProudNet</mark> -> <mark style="color:orange;">include</mark> folder.

<figure><img src="/files/toaVu4z47dTEmJGiTF7P" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LDnTrJcWipC53Ku3v7zc" alt=""><figcaption></figcaption></figure>

Paste all the copied files into **Libraries** in the Xcode project folder you created with Unity.

<figure><img src="/files/jsBinxKzDlvGvjzN0o7c" alt=""><figcaption><p>Copy the ProudNetClientPlugin_wrap.cxx file</p></figcaption></figure>

<figure><img src="/files/aKVrCzo5TEMC6b5JM0Fx" alt=""><figcaption></figcaption></figure>

Again, in the folder where ProudNet exists, copy the <mark style="color:orange;">ProudNetClientPlugin\_wrap.cxx</mark> file from the <mark style="color:orange;">ProudNet</mark> -> <mark style="color:orange;">lib</mark> -> <mark style="color:orange;">Plugins</mark> -> <mark style="color:orange;">Unity</mark> -> <mark style="color:orange;">iOS</mark> folder,

<figure><img src="/files/I4122qimR1xnmNvFYzqJ" alt=""><figcaption><p>Project path - Build - Libraries - Plugins - Unity - IOS </p></figcaption></figure>

<figure><img src="/files/2SnU2d7t5qxaQC67tqVp" alt=""><figcaption></figcaption></figure>

Paste it into the <mark style="color:orange;">Build</mark> -> <mark style="color:orange;">Libraries</mark> -> <mark style="color:orange;">Plugins</mark> -> <mark style="color:orange;">Unity</mark> -> <mark style="color:orange;">iOS</mark> folder.

<figure><img src="/files/voAISbtOUCzLIeQm95RC" alt=""><figcaption></figcaption></figure>

Open your Xcode project, select <mark style="color:orange;">UnityFramework</mark> -> <mark style="color:orange;">Build Settings</mark> from the **TARGETS** menu, and add the **Header Search Paths** from the **Search Paths** menu.

<figure><img src="/files/S0Tdqrmpwq4qtJLlNKUl" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/2n7cuTdqPZxEp4j1MRe5" alt=""><figcaption></figcaption></figure>

The path you add is the folder where the files imported from ProudNet are located.

<figure><img src="/files/L1LsKmMcr9XvENooDdaQ" alt=""><figcaption></figcaption></figure>

Click **Build** in the Xcode -> **Product** menu to generate the iOS build file.

## Possible errors

If the error below occurs, you must unblock it in **Personal Information Protection and Security** as follows.

<figure><img src="/files/2Qgrhl5JqHVzCw5HJnvm" alt=""><figcaption></figcaption></figure>

If you get an error like the one above&#x20;

<figure><img src="/files/hFcgWBHP9xV4razK9Nfr" alt=""><figcaption></figcaption></figure>

On the <mark style="color:orange;">System Settings</mark> -> <mark style="color:orange;">Privacy & Security</mark> -> <mark style="color:orange;">Security</mark> tab, click ***Allow anyway*** to unblock <mark style="color:orange;">ProudNetClientPlugin.bundle</mark>.

***

## :arrow\_left: [Back](/proudnet.eng/proudnet/2.setting/unity3d.md#ios)
