Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift 3: Unity Integration leads to crash on app lauch

I am currently experiencing the same problem which is described in this thread: Unity implementation in Swift 3 Project: Crash on app launch - MetadataCache::Initialize(). I was able to successfully integrate a simple unity project to Swift as explained here: https://github.com/blitzagency/ios-unity5.

Problem is that my exported unity project uses a pod itself (GVR-SDK from google). So I installed the missing framework and all compiler errors were gone, but unfortunately my app crashed directly after app start, but I cannot figure out why.

Is there any specific way I need to modify my main project when my unity build also uses pods?

like image 532
Objective D Avatar asked Jan 28 '26 02:01

Objective D


1 Answers

I also got stuck with this issue you are writing about for hours. Simply add -DRUNTIME_IL2CPP=1 to your „Other C Flags“ in your main project build settings and it should work like a charm.

like image 156
ANE Avatar answered Jan 29 '26 18:01

ANE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!