Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash at il2cpp::vm::MetadataCache::Initialize() #7

Open
michael-martinez opened this issue Jul 17, 2018 · 3 comments
Open

Crash at il2cpp::vm::MetadataCache::Initialize() #7

michael-martinez opened this issue Jul 17, 2018 · 3 comments

Comments

@michael-martinez
Copy link

michael-martinez commented Jul 17, 2018

When trying to build the application and to encapsulate the didFinishLaunchingWithOptions call in the framework (when pressing a button on the test application), the application crashes on the call.
I am using Unity 2017.4.1f1, Xcode 10.0.

The logs are the following :
matadata_cache_issue.�
screen shot 2018-07-17 at 08 56 23
screen shot 2018-07-17 at 08 57 00

According to some info gathered here, it should be due to the Unity code not finding a file name 'global-metadata.dat' in a Data/Managed/Metadata directory but I have no clue on where to put it, the Data/ folder is a reference to the one located in the framework folder as in the repository.

@HeyCodeWill
Copy link

Try add -DINIT_SCRIPTING_BACKEND=1 -DRUNTIME_IL2CPP=1 in Other C Flags in Unity Out Framework Project

@NikKovIos
Copy link

Try to delete Data folder and add with folder references again.

Try to change
UnityInitApplicationNoGraphics([[[NSBundle mainBundle] bundlePath] UTF8String]);
by:
NSBundle * bundle = [NSBundle bundleForClass:[self class]];
UnityInitApplicationNoGraphics([[bundle bundlePath] UTF8String]);

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

@voshk
Copy link

voshk commented Aug 25, 2019

how about change the mach-o type of the framework from static to dynamic, maybe it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants