UnityEditor.BuildTarget.iPhone error

Options
Hi, i am using unity 2017.1.2f1 with this error after importing Photon voice

'Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs(497,164): error CS0619: `UnityEditor.BuildTarget.iPhone' is obsolete: `Use iOS instead (UnityUpgradable) -> iOS'

Google didn't show me any solutions to this one.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @iikii,

    You can fix this using two ways:

    1.
    Replace all occurrences of UNITY_5_3_AND_NEWER with UNITY_5_3_OR_NEWER. Especially the one line 496 of the file "Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs".
    2.
    Replace UnityEditor.BuildTarget.iPhone with UnityEditor.BuildTarget.iOS in the same line 497 of the file "Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs".

    Sorry for the inconvenience.
    This will be fixed in the next update.
  • iikii
    Options
    JohnTube said:

    Hi @iikii,

    You can fix this using two ways:

    1.
    Replace all occurrences of UNITY_5_3_AND_NEWER with UNITY_5_3_OR_NEWER. Especially the one line 496 of the file "Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs".
    2.
    Replace UnityEditor.BuildTarget.iPhone with UnityEditor.BuildTarget.iOS in the same line 497 of the file "Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs".

    Sorry for the inconvenience.
    This will be fixed in the next update.

    Thanks! i tried the second method and it works.