报错:Assets\IronSource\Editor\FacebookSettings.cs(18,48): error CS0619: ‘PBXProject.GetUnityTargetName()’ is obsolete: ‘This function is deprecated. There are two targets now, call GetUnityMainTargetGuid() - for app or GetUnityFrameworkTargetGuid() - for source/plugins to get Guid instead of calling to TargetGuidByName(GetUnityTargetName()).’
原来代码:
可以把代码修改为:
#if UNITY_2019_3_OR_NEWER
string targetId = project.GetUnityFrameworkTargetGuid();
#else
string targetId = project.TargetGuidByName(PBXProject.GetUnityTargetName());
#endif
参考:https://stackoverflow.com/questions/60459020/how-to-fix-bug-in-ironsource-unity-sdk-on-ios