Search Unity

Delete via Shell Facebook Build Support Unity 2019.2.0f1

Discussion in 'Unity Cloud Build' started by studentutu, Aug 13, 2019.

  1. studentutu

    studentutu

    Joined:
    Oct 22, 2017
    Posts:
    65
    Good afternoon everyone,
    Please ,help me out - I need to delete the facebook support to build the succesfull Cloud Build
    For IOS I have the following :
    echo "-------------------> Started on Working From Custom Bash script!"
    echo "Unity Arguments" + $*
    echo " Build path " + $UNITY_PATH
    cd /
    ls
    echo "Current dir :" + $PWD

    if [ -d "/UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines/Facebooksupport" ]; then
    echo "Unity Cloud Facebooksupport Relative Build target Found"
    rm -rf /UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines/Facebooksupport
    else
    echo "Unity Cloud Facebooksupport Build was not Found"
    fi

    if [ -d "/UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines/Facebook" ]; then
    echo "Unity Cloud Facebook Build target Found"
    rm -rf /UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines/Facebook
    else
    echo "Unity Cloud Facebook Build target was not Found"
    fi

    echo "-------------------> Endet Working From Custom Bash script!"

    I cannot find the right folder - the /UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines is never found/
    Please, help!
     
  2. alexg-unity

    alexg-unity

    Unity Technologies

    Joined:
    Oct 29, 2016
    Posts:
    6
    So those are virtual Read-Only paths and not specific to your job's workspace. Thus, what you are trying to do is impossible with this script. May I ask why is it that you need to remove the FB support packages from the standard Unity install version(s)? is it to address a conflict of some sort in your project? I may be able to speak to the Unity FB team on your behalf or repro any issues you have and come up with a solution for you.
     
  3. michael_looply

    michael_looply

    Joined:
    Mar 26, 2018
    Posts:
    3
    Hi Alex,

    To add some context to what studentutu is trying to do, it appears that Unity 2019.2.0f1 always tries to compile against Facebook SDK 7.9.4 that is installed in the Facebook Playback Engine directory, regardless of whether or not another Facebook SDK is present in the Assets directory of the project. This means that Unity Cloud Build always fails to build when a Facebook SDK is present within the Assets directory, since the Facebook Playback Engine cannot be removed from Cloud Build instances of Unity.

    The issue can be seen in the
    unity_csc.sh
    invocations in the Cloud Build logs. There are always
    /reference
    parameters for the built-in 7.9.4 SDK, as follows:

    Code (CSharp):
    1. [Unity] /reference:"/UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines/Facebook/SDK/7.9.4/Facebook.Unity.dll"
    2. [Unity] /reference:"/UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines/Facebook/SDK/7.9.4/Facebook.Unity.Arcade.dll"
    3. [Unity] /reference:"/UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines/Facebook/SDK/7.9.4/Facebook.Unity.Settings.dll"
    4. [Unity] /reference:"/UNITY_PATH/Unity/Unity-2019_2_0f1/PlaybackEngines/Facebook/SDK/7.9.4/FacebookNamedPipeClient.dll"
    These references are present, even if another Facebook SDK is in the project. My project includes Facebook SDK 7.12.2, and my logs contain both the aforementioned 7.9.4 references and the following:

    Code (CSharp):
    1. [Unity] /reference:"Assets/FacebookSDK/Plugins/Facebook.Unity.dll"
    2. [Unity] /reference:"Assets/FacebookSDK/Plugins/Canvas/Facebook.Unity.Canvas.dll"
    3. [Unity] /reference:"Assets/FacebookSDK/Plugins/Editor/Facebook.Unity.Editor.dll"
    4. [Unity] /reference:"Assets/FacebookSDK/Plugins/Gameroom/Facebook.Unity.Gameroom.dll"
    5. [Unity] /reference:"Assets/FacebookSDK/Plugins/Gameroom/FacebookNamedPipeClient.dll"
    6. [Unity] /reference:"Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll"
    I've attached a more complete sample of one of the
    unity_csc.sh
    invocations from one of my failed 2019.2.0f1 builds on Cloud Build for reference.

    The issue is reproducible locally, as well; installing Unity 2019.2.0f1 without the Facebook Playback Engine and importing any Facebook SDK into a new project should result in successful compilation until the Facebook Playback Engine is installed. Once it's installed, compilation in the editor stops working due to various duplicate Facebook.*.dll files being loaded during the compilation process.

    Edit: Can't really dig any deeper than this, but it looks like it's related to https://github.com/Unity-Technologi...9.2/Editor/Mono/Modules/ModuleManager.cs#L235; there's an ivy.xml in the old 7.9.4 SDK that is almost definitely the cause of those DLLs being loaded regardless of build target.
     

    Attached Files:

    Last edited: Aug 13, 2019
    chadq likes this.
  4. alexg-unity

    alexg-unity

    Unity Technologies

    Joined:
    Oct 29, 2016
    Posts:
    6
    thanks, Michael, this is very good info to have and we appreciate it. I will try to loop in the relevant Devs and Support in on this, especially if there is a fix to that ivy.xml that we can patch at the data center, that would make things easy as a possible workaround.
     
  5. studentutu

    studentutu

    Joined:
    Oct 22, 2017
    Posts:
    65
    The same issue is described better in this thread https://forum.unity.com/threads/fac...een-imported-error.467925/page-2#post-4852925
     
  6. phuong_unity

    phuong_unity

    Unity Technologies

    Joined:
    Apr 25, 2018
    Posts:
    20
    This problem occurs in Unity 2019.2 if both the Facebook Gameroom module (which is installed by default in Cloud Build) and a Facebook SDK plugin are installed. This is something that has been broken in 2019.2 and currently, we are still investigating the cause of the issue.

    I have been informed by @alexg-unity that for now, we can disable the Facebook Gameroom module in Cloud Build for projects that have this issue. Please open a support ticket through the Developer Dashboard or email cloudbuildsupport@unity3d.com and we can assist you further.
     
    Last edited: Aug 17, 2019 at 2:06 AM
  7. studentutu

    studentutu

    Joined:
    Oct 22, 2017
    Posts:
    65
    Please, disable it! I will open the ticket
     
  8. alexg-unity

    alexg-unity

    Unity Technologies

    Joined:
    Oct 29, 2016
    Posts:
    6
    To make things easier, I have unblocked the custom version of Unity 2019.2.0 for this issue and made it globally available in Cloud Build under the drop-down name of Unity 2019.2.0noFB. Please contact Support if you have any further issues.

    Screen Shot 2019-08-20 at 9.37.14 AM.png
     
  9. studentutu

    studentutu

    Joined:
    Oct 22, 2017
    Posts:
    65
    Could also make the same fix for Unity 2019.2.1f?
     
  10. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    171
    @studentutu, Unity 2019.2.1noFB has also been added. These versions will only be temporary whilst the Facebook team fix the underlying issue.

    Workaround recap:
    2019.2.0f1 - configure Cloud Build to use 2019.2.0noFB
    2019.2.1f1 - configure Cloud Build to use 2019.2.1noFB
     
    ImbaGame likes this.