Facebook SDK 9.0 ์ ์ฌ์ฉํ๋ Unity Project(2020.1.0f)๋ฅผ iOS ๋น๋ ํ๋ ์ค ๋ง๋ ์๋ฌ...
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 /Users/builduser/buildslave/unity/build/External/XcodeAPI/Xcode/PBXProject.cs:172) XcodeOption.OnPostProcessBuild (UnityEditor.BuildTarget buildTarget, System.String path) (at Assets/Editor/XcodeOption.cs:20) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <fb001e01371b4adca20013e0ac763896>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <fb001e01371b4adca20013e0ac763896>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <fb001e01371b4adca20013e0ac763896>:0) UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:177) UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass17_0.<OnBuildPostProcess>b__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:433) UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:391) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189) |
์น์ ํ๊ฒ ์ค๋ฅ ํด๊ฒฐ๋ฒ์ ์๋ ค์คฌ๊ตฐ...
ํด๊ฒฐ์ฑ
Unity 2019.3๋ถํฐ iOS ๋น๋ ์, TargetGuidByName("Unity-iPhone") ๊ตฌ๋ฌธ ๋์ ์ GetUnityFrameworkTargetGuid()๋ GetUnityMainTargetGuid() ๋ฅผ ์ฌ์ฉํด์ผ ํ๋ค๊ณ ํ๋ค. ์ฆ, Xcode Project๋ฅผ ์์ฑํ๋ ๊ธฐ์กด์ฝ๋๋ฅผ ์ฌ์ฉํ๋ ์ค์ Unity Version ์ ์ฌ๋ ค์ ์๋ฌ๊ฐ ๋ ๊ฒ..!
์ ๋ฌธ์ ๋ ์ฏ์์ ์๋์ ๊ฐ์ ๋ง์ด ๋์จ๋น. ์ฐธ๊ณ ์ฐธ๊ณ ~
Unity 2019.3๋ถํฐ PBXProject.GetUnityTargetName์ pbxProject->TargetGuidByName("Unity-iPhone")์ ๋ ์ด์ ์ฌ์ฉํ์ง ์์ต๋๋ค. ๋์ pbxProject->GetUnityFrameworkTargetGuid(), ๋๋ pbxProject->GetUnityMainTargetGuid()๋ฅผ ์ฌ์ฉํ์ญ์์ค.
๋์ ๊ฒฝ์ฐ์๋ Assets>Editor>XcodeOption.cs ํ์ผ์์ pbxProject.TargetGuidByName("Unity-iPhone")๋ถ๋ถ์ pbxProject.GetUnityFrameworkTargetGuid() ๋ก ๋ฐ๊ฟ์คฌ๋ค.