Search Unity

[Unity] ERROR: export method 'PreBuildProcessor.PreprocessBuild' not found, aborting.

Discussion in 'Unity Build Automation' started by KalleC, Nov 23, 2018.

  1. KalleC

    KalleC

    Joined:
    Sep 3, 2018
    Posts:
    2
    This happens on both iOS and Android when using 2018.2.17f1.
    Last successful build was made with 2018.2.16f1.

    Code (CSharp):
    1. #if UNITY_EDITOR && UNITY_CLOUD_BUILD
    2. using System.Collections.Generic;
    3. using System.IO;
    4. using System.Text;
    5. using UnityEditor;
    6. using UnityEngine;
    7.  
    8. public static class PreBuildProcessor
    9. {
    10.     public static void PreprocessBuild(UnityEngine.CloudBuild.BuildManifestObject manifest)
    11.     {
    12.         ...
    13.     }
    14. }
    15. #endif
    I tried to changing PreprocessBuild to PreExport but problem still exist.

    What should I try next?
     
  2. cryptoforge

    cryptoforge

    Joined:
    Jan 21, 2015
    Posts:
    60
    Same problem after update, did you resolve this?
     
  3. GroundCombo

    GroundCombo

    Joined:
    Jan 23, 2015
    Posts:
    29
    Same thing, tried a Linux build:
    26900: [Unity] ERROR: export method 'Derelicts.CloudBuild.PreExportLinux' not found, aborting. Please make sure you are using the correct function signature.


    This used to work with Unity 2017.x (now testing 2018.2.17f1). I also see the following peculiar error in the log, maybe related to this? https://forum.unity.com/threads/clo...ot-find-file-define-unity_cloud_build.586858/

    6250: [Unity] /define:RELEASE
    6251: [Unity] /define:DISABLESTEAMWORKS
    6252: [Unity] /define:UNITY_CLOUD_BUILD
    6253: [Unity] -----CompilerOutput:-stdout--exitcode: 255--compilationhadfailure: True--outfile: Temp/Assembly-UnityScript.dll
    6254: [Unity] BCE0042: Error reading from '/define:RELEASE': 'Could not find file "/define:RELEASE".'.
     
  4. agamemnon-prime

    agamemnon-prime

    Joined:
    Aug 1, 2014
    Posts:
    9
    We are also having this issue. I've temporarily removed the pre-export config but then we're having other issues.
     
  5. josh_dreemar

    josh_dreemar

    Joined:
    Jan 9, 2019
    Posts:
    8
    Seems that the UNITY_CLOUD_BUILD define isn't working correctly. Removing the "#if" temporarily solved the issue for me, running 2018.3.0f2
     
    xucian likes this.
  6. Mouldi

    Mouldi

    Joined:
    Feb 23, 2013
    Posts:
    20
    any solution for this
     
  7. Jim_Zee_King

    Jim_Zee_King

    Joined:
    Mar 10, 2014
    Posts:
    10
  8. DantaliaN

    DantaliaN

    Joined:
    Oct 7, 2012
    Posts:
    18
    and up again
    same error after update unity purchase to 4.4.1
    downgrade to 4.1.5 solved this, but google needs to new version
     
  9. Danny327

    Danny327

    Unity Technologies

    Joined:
    Jan 4, 2021
    Posts:
    78
    Could you check the failed build logs if any of them have the following error message?

    "Assembly 'Library/ScriptAssemblies/Assembly-CSharp-Editor.dll' will not be loaded due to errors"

    Please note that the pre-export method is not detected when Assembly-CSharp-Editor.dll cannot be loaded because any editor scripts placed inside the Assets/Editor folder are compiled into Assembly-CSharp-Editor.dll. So, if this DLL is not loaded, the method inside it is never found.

    If you see this in the logs by any chance, I'd recommend you solve the reference conflicts that are preventing those DLLs from being loaded properly.