Can't get project to build

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.

1 Like

@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!

13 Likes

Thanks, I’ll try that.

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.

1 Like

@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.

7 Likes

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!!!

This worked for me

Remove all scenes from ‘Scenes In Build’ of the ‘Build Settings’ window. Then re-add them. This worked for me.

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

2 Likes

Wow! This worked superbly!
Thanks a lot.

Thanks
its working

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.

welp,I had a deleted scene reference and got this error after removing that reference the error was gone

I had an issue with this as well, where the build refused to work even though the scene path names matched the ‘Build Settings’ window.

Scenes/Main
Scenes/Second

Guess what - it will NOT match the build settings window. The BuildPlayer method expects this “relative to the project folder” so here’s the paths I had to set

Assets/Scenes/Main.unity
Assets/Scenes/Second.unity

Hope this helps someone. It drove me barmy for hours