diff --git a/source/IOSResolver/src/IOSResolver.cs b/source/IOSResolver/src/IOSResolver.cs
index ed65e7ec..8acd6465 100644
--- a/source/IOSResolver/src/IOSResolver.cs
+++ b/source/IOSResolver/src/IOSResolver.cs
@@ -831,6 +831,18 @@ public static string XcodeUnityFrameworkTargetName {
}
}
+ ///
+ /// Name of the Xcode target which contains Unity libraries.
+ /// From Unity 2019.3+, Unity includes all its libraries and native libraries under Assets
+ /// folder to 'UnityFramework' instead of 'Unity-iPhone'.
+ ///
+ public static string XcodeTargetWithUnityLibraries {
+ get {
+ return MultipleXcodeTargetsSupported ?
+ XcodeUnityFrameworkTargetName : XcodeMainTargetName;
+ }
+ }
+
///
/// Initialize the TARGET_NAME property.
/// This will be "Unity-iPhone" in versions of Unity (2019.3+) that added support for using
@@ -1975,7 +1987,8 @@ private static void ParseUnityDeps(string unityPodfilePath) {
continue;
}
// TODO: Properly support multiple targets.
- if (line.StartsWith(String.Format("target '{0}' do", XcodeMainTargetName))) {
+ if (line.StartsWith(String.Format("target '{0}' do",
+ XcodeTargetWithUnityLibraries))) {
capturingPodsDepth++;
continue;
}