1. The Unity code here is looking for a file name 'global-metadata.dat' in a Data/Managed/Metadata directory - that is what MatadataCacge::Initialize loads. If your project is re-packaging the Unity code in a different way, I wonder if that file is missing. Is that the case?
Attached Files:
UnityInitApplicationNoGraphics([[[NSBundle mainBundle] bundlePath] UTF8String]);
by:
NSBundle * bundle = [NSBundle bundleForClass:[self class]];
UnityInitApplicationNoGraphics([[bundle bundlePath] UTF8String]);
不成功
4.I also met the same problem。 i had put the global-metadata.dat in right way。But run crash still。 Then I found if change framework‘s Mach-O Type to Dynamic Library 。This problem will be solved!