Unity implementation in Swift 3 Project: Crash on app launch - MetadataCache::Initialize()

杀马特。学长 韩版系。学妹 提交于 2019-12-08 05:02:55

问题


Hello fellow programmers,

I need to implement an exported Unity project to my native Swift project, so I followed the instructions of this tutorial:

https://github.com/blitzagency/ios-unity5

Unfortunately, the app crashes on app launch. I took a screenshot of my debug navigator:

I found this thread and followed every advice, but I cannot get it running. I would be very glad to see a working example:

https://forum.unity3d.com/threads/il2cpp-anyone-else-seeing-metadatacache-initialize-crashes-sometimes-when-the-game-starts.383145/

Thanks in advance.


回答1:


I fixed it. The tutorial says to remove the references of all ".h files" in Unity/Classes/Native/, but I accidently deleted all of them.



来源:https://stackoverflow.com/questions/44972589/unity-implementation-in-swift-3-project-crash-on-app-launch-metadatacachein

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!