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?
Summary: 2 warnings, 21 errors:
[Unity] Initialize engine version: 5.4.2f2 (b7e030c65c9b)
[Unity] -----CompilerOutput:-stdout–exitcode: 1–compilationhadfailure: True–outfile: Temp/Assembly-CSharp.dll
[Unity] Compilation failed: 5 error(s), 0 warnings
[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 [Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(80,35): (Location of the symbol related to previous error) [Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(101,36): error CS0111: A member MediaPlayerCtrl.ReleaseTexture(int)’ is already defined. Rename this member or use different parameter types
[Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(83,36): (Location of the symbol related to previous error)
[Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(104,36): error CS0111: A member MediaPlayerCtrl.SetTextureFromUnity(int, System.IntPtr, int, int, byte[ ])' is already defined. Rename this member or use different parameter types [Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(86,32): (Location of the symbol related to previous error) [Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(107,38): error CS0111: A member MediaPlayerCtrl.GetRenderEventFunc()’ is already defined. Rename this member or use different parameter types
[Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(90,38): (Location of the symbol related to previous error)
[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?
[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 [Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(101,36): error CS0111: A member MediaPlayerCtrl.ReleaseTexture(int)’ is already defined. Rename this member or use different parameter types
[Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(104,36): error CS0111: A member MediaPlayerCtrl.SetTextureFromUnity(int, System.IntPtr, int, int, byte[ ])' is already defined. Rename this member or use different parameter types [Unity] Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs(107,38): error CS0111: A member MediaPlayerCtrl.GetRenderEventFunc()’ is already defined. Rename this member or use different parameter types
[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?
[Unity] -----CompilerOutput:-stdout–exitcode: 1–compilationhadfailure: True–outfile: Temp/Assembly-CSharp-Editor-firstpass.dll
[Unity] Compilation failed: 1 error(s), 0 warnings
[Unity] Assets/Standard Assets/Effects/CinematicEffects(BETA)/TonemappingColorGrading/Editor/TonemappingColorGradingEditor.cs(247,56): error CS0117: UnityEditor.TextureImporterType' does not contain a definition for Default’
[Unity] /UNITY_PATH/Unity/Unity-5_4_2f2/Unity.app/Contents/Managed/UnityEditor.dll (Location of the symbol related to previous error)
[Unity] Assets/Standard Assets/Effects/CinematicEffects(BETA)/TonemappingColorGrading/Editor/TonemappingColorGradingEditor.cs(247,56): error CS0117: UnityEditor.TextureImporterType' does not contain a definition for Default’
I think this might be related to this thread:
If I build the project manually in the editor, the game seems to run fine on my device. If I use Cloud Build to make a build, I get exceptions on the device about various things. Why are builds made using Cloud Build resulting in differences between...
dannyd
November 21, 2016, 1:51pm
2
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.
SophiaC
December 19, 2016, 3:18pm
4
@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.+
SophiaC
December 20, 2016, 11:10am
6
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