# Hi I need to comunicate c++ with objective c (which it's a framework)

**URL:** <https://forums.unrealengine.com/t/hi-i-need-to-comunicate-c-with-objective-c-which-its-a-framework/487014>\
**Category:** UI\
**Tags:** interface, bridge, unreal-engine, iOS, framework, CPP, question\
**Created:** [August 4, 2021, 3:14pm UTC](https://forums.unrealengine.com/t/hi-i-need-to-comunicate-c-with-objective-c-which-its-a-framework/487014 "2021-08-04T15:14:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganuba\_Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ganuba\_Studios](https://forums.unrealengine.com/u/Ganuba_Studios)\
**Post date:** [August 4, 2021, 3:14pm UTC](https://forums.unrealengine.com/t/hi-i-need-to-comunicate-c-with-objective-c-which-its-a-framework/487014/1 "2021-08-04T15:14:57Z")

</div>

My problem its that I want to call a objetivce c Method and nothing happens (the console don’t throw any errors either), the method its never called.

The framework it’s very simple, it only have a .mm file and a swift class:

This is the header of the .mm file

 ![345602-unreal-plugin-bridge-header-framework.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/d/05d7ff86360276cf47652149b21204f5137e4a54.png)

The .mm file:

 ![345603-unreal-plugin-bridge-framework.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/e/4eee784cc490c5411f5521d1b7be94571134dc4d.png)

From the unreal side I have this class that receive the button event from a blueprint and call another class named “UnrealBridge.mm” (it is a .mm file but I tried with .cpp too)

 ![345604-pinnaclesdkmanager.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/1/9410c57ebc25e4d2218b4287c160d92dc1889ba6.png)

The UnrealBridge.mm header:

 ![345605-unreal-bridge-header.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/9/e59534eddc0813b3807f19bc3c6cc77ad2057a9a.png)

UnrealBridge.mm file:

 ![345606-unrealbridgemm.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/d/2fda198626b18147f03877b498eef8ccda1d5dbc.png)

I also tried to call the .mm methods from the framework with: “[UnrealPluginBridge MethodName]” (UnrealPluginBridge it is the interface name on objetive c). “[[UnrealPlugin shared] MethodName]” it is the instance of the swift class on the framework side (but I dont think that is possible to call from c++ directly to swift).

The framework is included I think because I added in the build.cs file and the header doesnt throw any errors (so the engine found the headers) and then I linked manually the framework in xcode to avoid “Library not found” at runtime

I tested the app by running the xcode project but also creating the .ipa file from unreal - build to iOS.  
I believe that I’m doing something wrong in the structure from the unreal side, because I’m sure that the framework structure is working, I also tried to expose the methods for the interface on “extern ‘C’” or changing the +(void) to just void \_initSdk(); for example.

if someone can help me it will be amazing, thanks in advance for reading all this! have a nice day

---

<div class="post-metadata">

**Author:** ![dev.gss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dev.gss](https://forums.unrealengine.com/u/dev.gss)\
**Post date:** [October 4, 2022, 12:14pm UTC](https://forums.unrealengine.com/t/hi-i-need-to-comunicate-c-with-objective-c-which-its-a-framework/487014/2 "2022-10-04T12:14:51Z")

</div>

Sorry to revive this for nothing, but Were you able to find a solution for this?
