Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Clean build includes Editor folders and #if UNITY_EDITOR

Discussion in 'Unity Build Automation' started by sunwangshu, Feb 3, 2023.

  1. sunwangshu

    sunwangshu

    Joined:
    Mar 2, 2017
    Posts:
    18
    Clean build fails because of errors related to scripts inside Editor folder and under
    #if UNITY_EDITOR flag, which shouldn't be.

    Normal build on the same branch can succeed, but has a lot of files not updated and causing issues.

    Local build on my own machine worked just fine without cache issues.


    Unity version: Unity 2021.3.4f1
    XCode version: Xcode 13.2.1


    [error] [2023-02-02T07:52:07Z - Unity] [Script Updater] Library/PackageCache/com.coffee.ui-particle@3.3.9/Scripts/BakingCamera.cs(20,35): error CS0234: The type or namespace name 'PrefabStageUtility' does not exist in the namespace 'UnityEditor.Experimental.SceneManagement' (are you missing an assembly reference?)


    I checked BakinCamera.cs and the "error" code is inside the block
    #if UNITY_2018_3_OR_NEWER && UNITY_EDITOR

    [error] [2023-02-02T07:52:09Z - Unity] Library/PackageCache/com.coffee.ui-particle@3.3.9/Scripts/Editor/UIParticleEditor.cs(216,25): error CS0234: The type or namespace name 'PrefabStageUtility' does not exist in the namespace 'UnityEditor.Experimental.SceneManagement' (are you missing an assembly reference?)
     
  2. jlemosz

    jlemosz

    Unity Technologies

    Joined:
    Oct 2, 2020
    Posts:
    8
    Hi there,

    Thank you for your patience with this. If you are still experiencing the issue, could you please contact our support team via the ticket filing section in the Unity Dashboard (DevOps > Help & Support > Ticket)? We would like to investigate further.

    Kind regards,

    Jonathan L
    Cloud Build Support
     
  3. RadialGames

    RadialGames

    Joined:
    Jan 31, 2017
    Posts:
    11
    I'm seeing this as well, but unfortunately am too busy to file a ticket. :/
     
    sunwangshu likes this.