RegisterMonoModules.cpp needs to be edited to fix the error: #endif without #if #endif

When using Unity 5 (B18) and building for iOS, the following error occurs:

.../RegisterMonoModules.cpp:87:2: error: #endif without #if #endif // !(TARGET_IPHONE_SIMULATOR) && !defined(__arm64__)

Easy to fix - just delete #endif on the line above the one that generates the error

But then you need to add -fno-objc-arc to create phases for the FbUnityInterface.mm file

What I find annoying is that every time a project is created, RegMonoModules.cpp needs to be edited again. Is there a way to make the changes stick?

Same issue with Facebook-unity-sdk 6.0 and 6.1

+4
source share
1 answer

@bjornrun : 4.6.9 facebook 6.2.2 data = , 40 Facebook/Editor/iOS/FixupFiles. cs :

data = Regex.Replace(data, @"mono_aot_register_module(mono_aot_module_mscorlib_info);", "mono_aot_register_module(mono_aot_module_mscorlib_info);");

.

Heyzap, PostProcessBuild HeyzapPostBuild 102 99, Facebook 100.

0

Source: https://habr.com/ru/post/1569810/


All Articles