CloudBuild Facebook SDK issue not on device - issue with looking for .dll in Library folder

I have been searching and trying for two days to fix this now. I have a game that works on iOS and Android. It was working fine in cloud build until i installed the Facebook SDK (v7.9.4). See here for a similar post:
https://forum.unity3d.com/threads/facebook-sdk-problem.446968/

Basically, i get this from cloud build:

1: ! platform service error: connect timeout reached
2: [Unity] Initialize engine version: 5.6.0f3 (497a0f351392)
3: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-firstpass.dll
4: [Unity] Compilation failed: 1 error(s), 0 warnings
5: [Unity] error CS1704: An assembly with the same name `Facebook.Unity.Settings' has already been imported. Consider removing one of the references or sign the assembly
6: [Unity] Library/FacebookSDK/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
7: [Unity] Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
8: [Unity] error CS1704: An assembly with the same name `Facebook.Unity.Settings' has already been imported. Consider removing one of the references or sign the assembly
9: [Unity] Library/FacebookSDK/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
10: [Unity] Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)

Why is it searching in the library folder for anything (i ignore it in my source control)?

Would be amazing if someone could help, i have tried everything (reinstalling, checking locally - both builds work on device, not using library cache on cloud build) and need Facebook login support in my app.

Thanks!

These steps fix the problem for me:

  1. delete ‘Facebbk’ from ‘Unity\Editor\Data\PlaybackEngines’
  2. Remove the FacebookSDK folder in your project’s Library folder
  3. build again…

When I deleted Facebook folder from Unity\Editor\Data\PlaybackEngines, then unity did not created the file ‘Library/FacebookSDK/Facebook.Unity.Settings.dll’.
Actually it did not created any file related to ‘Facebook’ i Library folder.

In my case, the error is disappeared after I close the editor and open it again.
On both 5.6.3f1. and 2017.1.0f3.

Go to this location
Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll via the ‘Project’ window
and delete Facebook.Unity.Settings.dll file .
That’s what i did and it seem to run after that.

Still happens in 5.6.1f1 :frowning:

In my case,


  1. When Import Facebook SDK, remove away Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll

  1. After Import, relocate Settings.dll

  1. Edit->Project Settings->Player (Here Disappear Error)

  1. Facebook->Edit Settings-> Put App ID

Unity Version 2010.3.0f3
Facebook SDK Version 7.10.1