readyplayerme / rpm-unity-sdk-webview

WebView helps you display an in-engine browser that helps you load RPM website where you can create avatars and receive avatar URL at the end of the process.
zlib License
13 stars 7 forks source link

webview ver. 2.1.2 compilation issue for iOS - 'Unity-iPhone' is deprecated #31

Closed JanFromNaomiAnimation closed 4 months ago

JanFromNaomiAnimation commented 4 months ago

Describe the bug after update from 2.0.0 to 2.1.2 there is compilation exception for iOS platform, as calling: Calling TargetGuidByName with name='Unity-iPhone' is deprecated:

Exception: Calling TargetGuidByName with name='Unity-iPhone' is deprecated. There are two targets now, call GetUnityMainTargetGuid() - for app or GetUnityFrameworkTargetGuid() - for source/plugins to get Guid instead. UnityEditor.iOS.Xcode.PBXProject.TargetGuidByName (System.String name) (at :0) ReadyPlayerMe.WebView.Editor.IOSBuildProcessor.OnPostprocessBuild (UnityEditor.BuildTarget target, System.String pathToBuiltProject) (at ./Library/PackageCache/com.readyplayerme.webview@0bfdb57191/Editor/IOSBuildProcessor.cs:18) System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:206)

To Reproduce Steps to reproduce the behavior:

  1. update to 2.1.2
  2. build project for iOS
  3. See exception

Expected behavior no compilation errors

Desktop (please complete the following information):

thnx a lot for fix

HarrisonHough commented 4 months ago

Thanks for letting us know! We just released a hotfix for this. Let us know if you are still having issues.

JanFromNaomiAnimation commented 4 months ago

Still compilation issues in 2.1.3 Compilation issue on Unity side is gone, but there is compilation problem in xcode (15.2) Screenshot 2024-01-19 at 13 48 17