Writing a plugin for an iOS framework

I’d like to write a UE4 plugin that links to an iOS framework. My guess right now is that I should take the static lib that the iOS framework wraps and put in the Binaries folder of plugin, and write a C++ API that calls methods in that framework/static lib. My questions are:

  1. Is the approach above correct?
  2. How do I get my game to link against that particular framework/static lib? Do I need to add a dependency in the *.Build.cs?

While it’s not specific to iOS this post is probably enough to get you pointed in the right direction.

Linking Static Libraries Using The Build System

It won’t work, thats for VS2013 not XCode

Hey Kevlar,

You should be able to add frameworks to your plugins build.cs like you suspect.

Just add:

PublicFrameworks.Add("MyFramework");

Hope this helps.
Terence