# Add the plugin to the Unity XCode project.

1. In the Unity project, copy the files resulting from the compilation of the iOS plugin. The output files are:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdR_ZxRMsBDEfWj7MTWwemaYCCtG6pkQJfzRqrsdsZ2mIezoBlN6llWBIzt5nFwxwqJzx1gYiFXherdz70B2cvLMgdEylluG3vhVO6IxbB7y16-MXvmEw9wtWrl1RaLw9ERjub13Q?key=z8t1k_LqDtHisw9gw3H4DGJQ" alt=""><figcaption></figcaption></figure>

\
\
2\. Copy them to the Assets/Plugin/iOS path

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdIM_QiWIqVr4KYXNt-ho_5t1Vybrm6IjCD0pFpG7ECdP8Mabb-TrOc6ZVp28cHOJWHlwN7osIsEw-hpP08e5Psu0GqCNui1TVdq3CTIQFnbLkxqSWmy4q_b8eIPDpX1GBVHuvzZA?key=z8t1k_LqDtHisw9gw3H4DGJQ" alt=""><figcaption></figcaption></figure>

<br>

3. Once the build is done, open the resulting XCode project. Curl must be in the frameworks section and in the Target Membership only UnityFramework appears.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcDfa2xmXwLjNKEW-tDanZt6DSXXRakVHGwojNs_Yb58jpDw8CJwAhWnZ9U8EbpjD-PdxXKgacLXHVk7WsO5YxFVfPOvAo1vzOOaeNoocbvOXWmg3TkmsFvj0jogBGrLRBM9SS13A?key=z8t1k_LqDtHisw9gw3H4DGJQ" alt=""><figcaption></figcaption></figure>

\
\
4\. For both Target Unity-iPhone and UnityFramework, the Search Path properties must include the directory where the Curl library is located recursively. The library will be found in the relative directory Frameworks/Plugins/iOS/curl.framework

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd0O56PikTACIgsCvggSfCzTcqZBdyP1GsfP1ru3kw9M3DV1Gohor2A77XHPlQKThRve6ZycxhZetldKSdXqOKb2fxDv63OpdwylAbHTqx6HEgMIMja4DmmzC688zBRUzxFm86aXw?key=z8t1k_LqDtHisw9gw3H4DGJQ" alt=""><figcaption></figcaption></figure>

\ <br>

5. For UnityFramework, in the “Other Linker Flags” property, add -lz

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcDVATg4PbvLRazT4X7vtm6GHvr-0Vjmm_DnJa_wxw8mgNLwOxYwOEMd6VgZrSbHVSJMhqwsFfWieYRDdHgFApdXGx_UPa7lVJHeOGVV8d1nXomH8THpZWu_5avDxY7p6xW5qrj2w?key=z8t1k_LqDtHisw9gw3H4DGJQ" alt=""><figcaption></figcaption></figure>

\ <br>

6. Configuring Build Phases for Unity-iPhone

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdjaIvqYVvkL2W4Wkr_iAWqH6pbrjFmT6unR5Z8jTGM1DsbjE7D_O1io3eHqfTPB3_8H8qnIc-UsLNbUv3S1KYCRmZ65ECELW_oG7wtKtNk1lrDLF7mZNPvGYY8vLQ3CPrVCC60?key=z8t1k_LqDtHisw9gw3H4DGJQ" alt=""><figcaption></figcaption></figure>

\
\ <br>

7. Configuring Build Phases for UnityFramework. Check that the libraries are found: libz.tbd, curl.framework and libiosBasicPlugin.a

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXepSzDuIW4FGvKpMfLCRUdg-OzhPN3ATJVOHmq74kacCY2IR5jR5INQXgowZjhoSJzSyRQNLigp9m3WFyFWOk1a5HgZUga3hFXIU2G5AcH4OA0goMOyruE1f8U2YiGgXj0oAXIUWw?key=z8t1k_LqDtHisw9gw3H4DGJQ" alt=""><figcaption></figcaption></figure>
