Cloud build fails with errors but local build is successful and without errors

My local build works fine and without errors but the cloud build throws errors that doesn’t appear locally. I use the same unity version for ucb as the local build so I would expect the same results. Could someone help me?

I think this might be related to this thread:

Does building locally from a fresh clone of the repo build correctly?

The errors like:

[Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(98,35): error CS0111: A member `MediaPlayerCtrl.SetTexture()' is already defined. Rename this member or use different parameter types

suggest that maybe there are some scripting defines different from local vs. Unity Cloud Build. Also it looks like maybe you are using 5.5 locally, whereas that build in Unity Cloud Build was 5.4 (UnityEngine.AI is only in 5.5):

[Unity] Assets/PlayMaker/Actions/Animator/NavMeshAgentAnimatorSynchronizer.cs(18,37): error CS0234: The type or namespace name `AI' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?

I would try switching that build target to use a version of Unity 5.5 and build again.

Did you ever find a resolution to this? I ran into the exact same problem building to 5.5 on the cloud. No problem building locally.

@dansmiczek did you try building locally from a fresh clone of the repo?

Yes, local build fresh builds fine. Cloud build fails. Seems to be something specific to EasyMovieTexture and 5.+

Thanks for getting back to me.

Please format your post as described here: Read this before posting - Unity Services - Unity Discussions

This gives us all the info we need to investigate :slight_smile:

  • Sophia