From a587a7a96765410198f5f4a7d00186b38677174e Mon Sep 17 00:00:00 2001 From: agra Date: Mon, 11 May 2026 12:07:04 +0300 Subject: [PATCH] gallery: link PhotosUI in podspec so the limited-picker category loads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swift `import PhotosUI` made the compiler happy but the binary never referenced any PhotosUI symbol directly — `presentLimitedLibraryPicker` is dispatched via `objc_msgSend` against an Obj-C category on `PHPhotoLibrary`. Without an explicit framework link the linker dropped PhotosUI, the category never registered, and iOS 26 raised NSInvalidArgumentException for an "unrecognized selector". Declare Photos + PhotosUI as podspec frameworks so the linker force- loads them. --- ios/ux.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/ux.podspec b/ios/ux.podspec index 0caa2c8..5d072be 100644 --- a/ios/ux.podspec +++ b/ios/ux.podspec @@ -7,6 +7,7 @@ Pod::Spec.new do |s| s.author = { 'Swipelab' => 'hello@swipelab.co' } s.source = { :path => '.' } s.source_files = 'Classes/**/*.swift' + s.frameworks = ['Photos', 'PhotosUI'] s.dependency 'Flutter' s.ios.deployment_target = '13.0' s.swift_version = '5.0'