From f70766dfd93b15edf93a01f35e388c74b2fb632c Mon Sep 17 00:00:00 2001 From: yasirkula Date: Sat, 9 Dec 2023 18:21:29 +0300 Subject: [PATCH] Fixed build error if PhotosUI framework was added explicitly on iOS --- Plugins/NativeGallery/Editor/NGPostProcessBuild.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Plugins/NativeGallery/Editor/NGPostProcessBuild.cs b/Plugins/NativeGallery/Editor/NGPostProcessBuild.cs index 8595eb5..74cbb2d 100644 --- a/Plugins/NativeGallery/Editor/NGPostProcessBuild.cs +++ b/Plugins/NativeGallery/Editor/NGPostProcessBuild.cs @@ -129,6 +129,7 @@ public static void OnPostprocessBuild( BuildTarget target, string buildPath ) } pbxProject.RemoveFrameworkFromProject( targetGUID, "Photos.framework" ); + pbxProject.RemoveFrameworkFromProject( targetGUID, "PhotosUI.framework" ); File.WriteAllText( pbxProjectPath, pbxProject.WriteToString() );