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

Can't get project to build

Discussion in 'Unity Build Automation' started by vogles, Aug 28, 2014.

  1. vogles

    vogles

    Joined:
    Sep 28, 2009
    Posts:
    131
    I'm not really sure what I'm doing wrong. My project is kept in SVN. UCB is getting the project fine and trying to build things. But I keep getting the error:
    [Unity] Player export failed. Reason: 'Assets/Scenes/TestScene.unity' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
     
    wardo653 likes this.
  2. hypeNate

    hypeNate

    Unity Technologies

    Joined:
    Apr 4, 2014
    Posts:
    272
    @vogles - Hmm...It sounds like you might have a bad scene reference in your project. Unity Cloud Build uses whatever scenes you've added in the Build Settings menu.

    You might try opening your Build Settings menu, removing all the scenes, and then re-adding them. If you do that, and your project builds locally, then it should work in UCB.

    If that doesn't work, please file a support ticket with us and we'll look into it. Thanks!
     
  3. vogles

    vogles

    Joined:
    Sep 28, 2009
    Posts:
    131
    Thanks, I'll try that.
     
  4. WarpZone

    WarpZone

    Joined:
    Oct 29, 2007
    Posts:
    326
    Why do I get this error even when I'm NOT using Cloud Build? I'm just using the same hand-written BAT file that worked in April.
     
    mowax74 likes this.
  5. ignacio_coso

    ignacio_coso

    Joined:
    Apr 4, 2016
    Posts:
    1
    @WarpZone same issue here, issue caused due in buildsettings there was a reference to a removed scene (outdated).
    Builds done fine just by removing this broken reference.
     
  6. unity_VqHbHjvoC2JWeA

    unity_VqHbHjvoC2JWeA

    Joined:
    Jul 23, 2019
    Posts:
    1
    Thank you so much! it worked for me, I wanted to show my friends the 2D game kit level I made and was worried I wouldn't be able to! thank you so much!!!!
     
  7. B4D_B0Y_17

    B4D_B0Y_17

    Joined:
    May 2, 2018
    Posts:
    1
    This worked for me
     
  8. worldwideinfo6

    worldwideinfo6

    Joined:
    Jan 23, 2020
    Posts:
    1
    Remove all scenes from 'Scenes In Build' of the 'Build Settings' window. Then re-add them. This worked for me.
     
  9. dhruv304c2

    dhruv304c2

    Joined:
    Jun 8, 2020
    Posts:
    1
    I had the same error, I realized that I had a scene added to the build settings which was deleted, Check If in the build setting there is some scene which is marked as Deleted and click on it and remove selection
     
    usamagaard and curciojamunda like this.
  10. arpitdps1

    arpitdps1

    Joined:
    Dec 2, 2020
    Posts:
    2
    Wow! This worked superbly!
    Thanks a lot.
     
  11. aaqib0003

    aaqib0003

    Joined:
    Sep 19, 2017
    Posts:
    2
    Thanks
    its working
     
  12. SuperCrow2

    SuperCrow2

    Joined:
    Mar 8, 2018
    Posts:
    584
    I know this is old, but in case someone else also ran into this problem. I was wondering why my "Build and Run" wasn't working. For me it was because I deleted a scene but that scene was still in my "Build Settings". So, once I removed that, "Build and Run" works again.
     
  13. TawhidOOF

    TawhidOOF

    Joined:
    Aug 29, 2021
    Posts:
    1
    welp,I had a deleted scene reference and got this error after removing that reference the error was gone