Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by gauravgupta · Aug 09, 2019 at 01:04 PM · facebookil2cppexception

Could not load file or assembly 'Facebook.Unity.Gameroom' Exception occurs on IL2CPP build.

We are getting the following exception while running our game on Facebook Gameroom and calling FB.Init() function.
We are using Unity 2019.1.8f1 and IL2CPP build. If we use mono build this works fine but we want to use IL2cpp only.

FileNotFoundException: Could not load file or assembly 'Facebook.Unity.Gameroom' or one of its dependencies at System.AppDomain.Load (System.String assemblyString) [0x00000] in :0 at System.Reflection.Assembly.Load (System.String assemblyString) [0x00000] in :0 at Facebook.Unity.Gameroom.GameroomFacebookLoader.get_FBGameObject () [0x00000] in :0 at Facebook.Unity.FB+CompiledFacebookLoader.Start () [0x00000] in :0


We have verified that Facebook.Unity.Gameroom.dll is getting copied to Library/PlayerDataCache\Win\Data\Managed folder but this exception still occurs as soon as game calls FB.Init method.


Let us know if someone knows what causes this issue or any fixes for the same.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JoshPeterson · Aug 13, 2019 at 12:36 PM 0
Share

With IL2CPP, all of the managed code must be compiled ahead of time. I believe Facebook.Unity.Gameroom.dll is a managed assembly, is that correct? If so, IL2CPP should convert it to C++ code at build time. Do you know if this assembly is registered as a managed plugin for the project? See https://docs.unity3d.com/$$anonymous$$anual/UsingDLL.html for details.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Gwom · Aug 27, 2021 at 01:02 PM

I added this to the Assets\FacebookSDK\link.xml file and it stopped complaining about it - this is what my link file now looks like:

 <linker>
   <assembly fullname="Facebook.Unity.Android" ignoreIfMissing="1">
     <type fullname="Facebook.Unity.Android.*" preserve="all"/>
   </assembly>
   <assembly fullname="Facebook.Unity.IOS" ignoreIfMissing="1">
     <type fullname="Facebook.Unity.IOS.*" preserve="all"/>
   </assembly>
   <assembly fullname="Facebook.Unity.Canvas" ignoreIfMissing="1">
     <type fullname="Facebook.Unity.Canvas.*" preserve="all"/>
   </assembly>
   <assembly fullname="Facebook.Unity.Gameroom" ignoreIfMissing="1">
     <type fullname="Facebook.Unity.Gameroom.*" preserve="all"/>
   </assembly>
 </linker>

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

180 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Build WebGL with v7.9.0 Facebook SDK error. 1 Answer

build with IL2CPP error unity 4.6.9 while making iOS build 1 Answer

Buliding Android Game | Exception - il2cpp.exe did not run properly 0 Answers

il2cpp+mysql error 2 Answers

When script debugging is selected, an error is generated in the il2cpp build 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges