Building via Unity Cloud results in Namespace errors

Options
Hi,

I've got some issues when building the project with Unity clouds. I get lots of errors similar to the following:
[Unity] Assets/Photon/PhotonRealtime/Code/AppSettings.cs(21,26): error CS0246: The type or namespace name 'ExitGames' could not be found (are you missing a using directive or an assembly reference?)

[Unity] Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs(1912,46): error CS0246: The type or namespace name 'OperationResponse' could not be found (are you missing a using directive or an assembly reference?)

I don't get any errors when running in Unity itself.

For a clean setup I removed PUN2 from the project and reimported it from the Asset Store. I got some errors (which I'm sure are related to windows user rights). (see https://forum.unity.com/attachments/pun2_import-errors1-jpg.572749/) . By starting Unity as an administrator I get only one error after import (see https://forum.unity.com/attachments/pun2_import-errors2-jpg.572752/).

Building in Unity Cloud results still it lots of errors (see https://forum.unity.com/attachments/unity-clouds-errors-txt.572755/). Any ideas how to solve this issue?

Thanks in advance!

KayJ

Comments

  • KayJ
    Options
    Since I can't edit my post: here is the correct link: https://forum.unity.com/attachments/unity-cloud_log-txt.572770/
  • KayJ
    Options
    Hey, I resolved the issue. Looks like Sourcetree likes to put lots of stuff in the global ignore file if you dare to add anything to it via sourcetree. Thus all *.dll have been ignored in any repo :|
  • Tobias
    Options
    ARGH.
    Nice one, SourceTree.
    I'd recommend Fork.

    There may be one more Cloud Build issue with PUN. We recently figured out one fix which is not yet released:

    In PhotonEditor.OnProjectChanged(), add this code as the first few lines:
                // Prevent issues with Unity Cloud Builds where ServerSettings are not found.
                // Also, within the context of a Unity Cloud Build, ServerSettings is already present anyway.
                #if UNITY_CLOUD_BUILD
                return;   
                #endif