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:

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

  1. 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.

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

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

  1. Configuring Build Phases for Unity-iPhone

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

Last updated

Was this helpful?