Integration of Facebook SDK prevent actions on iphone

I integrated the Facebook SDK into my game and was able to run my game fine in the unity editor as well as a windows executable.

When I cloud build for iOS it successfully builds, I can open the game but can’t leave the main menu or open anything (When I click buttons, they react with a pressed animation but that’s it, and my ShowAdOnStart still appears).

Looking at my cloud logs, these are the errors I get:

50: [Unity] -----CompilerOutput:-stdout–exitcode: 1–compilationhadfailure: True–outfile: Temp/Assembly-CSharp-Editor.dll
51: [Unity] Compilation failed: 4 error(s), 0 warnings
52: [Unity] Assets/Facebook/Editor/FacebookPostprocess.cs(25,20): error CS0234: The type or namespace name Unity' does not exist in the namespace UnityEditor.Facebook’. Are you missing an assembly reference?
53: [Unity] Assets/Facebook/Editor/android/ManifestMod.cs(29,20): error CS0234: The type or namespace name Unity' does not exist in the namespace UnityEditor.Facebook’. Are you missing an assembly reference?
54: [Unity] Assets/Facebook/Editor/iOS/FixupFiles.cs(26,20): error CS0234: The type or namespace name Unity' does not exist in the namespace UnityEditor.Facebook’. Are you missing an assembly reference?
55: [Unity] Assets/Facebook/Editor/iOS/PListParser.cs(29,20): error CS0234: The type or namespace name Unity' does not exist in the namespace UnityEditor.Facebook’. Are you missing an assembly reference?
56: [Unity] Assets/Facebook/Editor/FacebookPostprocess.cs(25,20): error CS0234: The type or namespace name Unity' does not exist in the namespace UnityEditor.Facebook’. Are you missing an assembly reference?
57: [Unity] Assets/Facebook/Editor/android/ManifestMod.cs(29,20): error CS0234: The type or namespace name Unity' does not exist in the namespace UnityEditor.Facebook’. Are you missing an assembly reference?
58: [Unity] Assets/Facebook/Editor/iOS/FixupFiles.cs(26,20): error CS0234: The type or namespace name Unity' does not exist in the namespace UnityEditor.Facebook’. Are you missing an assembly reference?
59: [Unity] Assets/Facebook/Editor/iOS/PListParser.cs(29,20): error CS0234: The type or namespace name Unity' does not exist in the namespace UnityEditor.Facebook’. Are you missing an assembly reference?

Still haven’t been able to fix this. As an update, I’m able to build the app using Xcode and run it properly on my iPhone. I think it has something to do with my repository and the FB SDK (I’m including the entire SDK in my push). Are there folders/files I should exclude?

I am also having issue when I updated unity to 5.6.1f1 personal. Any helps will be greatly appreciate!

Look at what I did here Cloud Build still fails build with facebook SDK when build on 5.6 - Unity Services - Unity Discussions. It worked for me as a temporary solution