Download

Swift bridging for ObjectiveC and C++

If you are developing for ios, you know that xcode can compile swift with objc, and it is possible to call one from other.

Has anyone tried to setup the bridging option of xcode for calling swift code in ue4 c++? If so can you give a few tips?

If not, I’m trying currently but have no idea how to set a build setting for xcode from UE4…
So the bridge header file is not getting generated, compile crashes with file not found error.

Take a look at this for some information:
https://mobiforge.com/design-development/using-objective-c-and-swift-together-ios-apps

I think it’s not possible but maybe I’m wrong. UE4 has own UnrealBuildTool and uses mixed Obj-C and C++. I think it’s not a trivial problem.