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
Unity 2019.3 - Missing RegisterMonoModule.h #359
Comments
Did you find a solution? |
Just removing the The But Facebook SDK is asking for this file just to add a HAS_UNITY_VERSION_DEF if unity is newer than 4.3 xD So, i have also changed the FBUnityInterface.h to always include the UnityTrampolineConfigure.h (to keep the same behaviour that we had). |
I also have this problem! But it still fails with /Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit/FBSDKHashtag.h:24:9: Module 'FBSDKCoreKit' not found |
Until Facebook issues an update, the best solution is below amongst the ones I tried:
That file is useless now but FB SDK is still dependant on it. |
This file is also referenced from the post process script which breaks the post process. |
Has anyone come up with a workaround for this yet? |
I have commented up the "#include RegisterModules.h" line, but when I rebuilt the game, it still said that the RegisterModules.h couldn't be found. |
@h3902340 This is because one of the dlls has a reference to RegisterModules.h as well. |
Hi, I have just upgrade my Facebook SDK for Unity to 7.18.1, it removed the "#include RegisterModules.h" line, but this line of code is still referencing RegisterMonoModules.h, so the console is stilling complaining about not finding the RegisterMonoModules.h file. Because this line of code is in a dll file, there is no easy workaround to this issue, please fix it as soon as possible. |
Local builds were built despite the error, but builds in batchmode failed because of the missing file. Aside from removing the #include "RegisterMonoModules.h" from the Facebook/FacebookSDK/SDK/Editor/iOS/FBUnityInterface.h and always including the UnityTrampolineConfigure.h. We are using this workaround to have a fake file:
|
Repeating @h3902340 It seems 177ff89 removed the
It also means
This file would be included in previous versions of the Facebook SDK for Unity when building for Unity 4.3+. I am not quite sure if this was an intended side effect of 177ff89 (the commit I mentioned above). Update re HAS_UNITY_VERSION_DEF:
So it seems #include "UnityTrampolineConfigure.h" and the #ifdef surrounding it can be removed without problems, since UNITY_VERSION is used nowhere in the SDK... |
Checklist
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
2019.3.12b
7.18.0, 7.17.2
[iOS]
version10.0+
Goals
Build for iOS using Unity 2019.3
Expected Results
Successful build
Actual Results
Compilation fails because RegisterMonoModule.h is no longer provided in Unity 2019.3 by design: https://issuetracker.unity3d.com/issues/filenotfoundexception-when-building-a-project-with-facebook-sdk-for-ios
Since the minimum Unity supported version is already 5.4 you could just simply remove the FixUp part related with RegisterMonoModules.cpp and RegisterMonoModules.h i guess and remove the lines 21-27 from the FBUnityInterface.h.
Steps to Reproduce
What are the steps necessary to reproduce this issue?
The text was updated successfully, but these errors were encountered: