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.
'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.
0
Comments
-
Hi @iikii,
You can fix this using two ways:
1.
Replace all occurrences ofUNITY_5_3_AND_NEWER
withUNITY_5_3_OR_NEWER
. Especially the one line 496 of the file "Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs".
2.
ReplaceUnityEditor.BuildTarget.iPhone
withUnityEditor.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.0 -
Thanks! i tried the second method and it works.JohnTube said:Hi @iikii,
You can fix this using two ways:
1.
Replace all occurrences ofUNITY_5_3_AND_NEWER
withUNITY_5_3_OR_NEWER
. Especially the one line 496 of the file "Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs".
2.
ReplaceUnityEditor.BuildTarget.iPhone
withUnityEditor.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.0