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.
15 lines
555 B
Ruby
15 lines
555 B
Ruby
Pod::Spec.new do |s|
|
|
s.name = 'ux'
|
|
s.version = '0.9.0'
|
|
s.summary = 'UX Kit — Flutter plugin: keyboard, sensor, file, and QR scanner.'
|
|
s.homepage = 'https://swipelab.co/ux.html'
|
|
s.license = { :file => '../LICENSE' }
|
|
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'
|
|
end
|