Skip to content

Commit 38a34d1

Browse files
committed
Testing other solutions
1 parent 8cf54b6 commit 38a34d1

23 files changed

+18
-10
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

exploded/Assets/ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.185_manifest.txt.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
77 Bytes
Binary file not shown.
77 Bytes
Binary file not shown.

source/IOSResolver/src/IOSResolver.cs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,12 @@ public static void SettingsDialog() {
843843
///
844844
internal static bool MultipleXcodeTargetsSupported {
845845
get {
846-
return typeof(UnityEditor.iOS.Xcode.PBXProject).GetMethod(
847-
"GetUnityMainTargetGuid", Type.EmptyTypes) != null;
846+
try {
847+
return typeof(UnityEditor.iOS.Xcode.PBXProject).GetMethod(
848+
"GetUnityMainTargetGuid", Type.EmptyTypes) != null;
849+
} catch (Exception) {
850+
return false;
851+
}
848852
}
849853
}
850854

@@ -853,12 +857,16 @@ internal static bool MultipleXcodeTargetsSupported {
853857
///
854858
public static string XcodeMainTargetName {
855859
get {
856-
// NOTE: Unity-iPhone is hard coded in UnityEditor.iOS.Xcode.PBXProject and will no
857-
// longer be exposed via GetUnityTargetName(). It hasn't changed in many years though
858-
// so we'll use this constant as a relatively safe default.
859-
return MultipleXcodeTargetsSupported ? "Unity-iPhone" :
860-
(string)VersionHandler.InvokeStaticMethod(typeof(UnityEditor.iOS.Xcode.PBXProject),
861-
"GetUnityTargetName", null);
860+
try {
861+
// NOTE: Unity-iPhone is hard coded in UnityEditor.iOS.Xcode.PBXProject and will no
862+
// longer be exposed via GetUnityTargetName(). It hasn't changed in many years though
863+
// so we'll use this constant as a relatively safe default.
864+
return MultipleXcodeTargetsSupported ? "Unity-iPhone" :
865+
(string)VersionHandler.InvokeStaticMethod(typeof(UnityEditor.iOS.Xcode.PBXProject),
866+
"GetUnityTargetName", null);
867+
} catch (Exception) {
868+
return "Unity-iPhone";
869+
}
862870
}
863871
}
864872

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

upm/ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.185_manifest.txt.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)