Open Igor-Palaguta opened 1 year ago
Hi Igor, Did you managed to get this resolved?
Hi @philipborbon , I remember some API from LinkPresentation (not available in iOS 12) was used in 5.0.8, I switched to previous version. Probably weak linking of LinkPresentation should fix the issue
Thanks for the info.
I got it working as suggested also in this thread "Xcode 13 does not weak link LinkPresentation framework?".
"Manually adding LinkPresentation.framework
to Link Binary with Libraries
build phase, and setting its status to Optional
."
Adding it in Pods > NYTPhotoViewer.framework
target did the trick.
Is the project not being maintained anymore?
@philipborbon or we can add to Podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "NYTPhotoViewer"
target.build_configurations.each do |config|
config.build_settings['OTHER_LDFLAGS'] ||= ['-weak_framework', 'LinkPresentation']
config.build_settings['OTHER_LDFLAGS'] << '$(inherited)'
end
end
end
end
We add NYTPhotoViewer using Cocopods and in 5.0.8 appeared an issue during application launch