fmdb icon indicating copy to clipboard operation
fmdb copied to clipboard

"Dispatch queue specific" warnings

Open bamx23 opened this issue 6 years ago • 3 comments

There are warnings related to the fact that dispatch_queue_set_specific and dispatch_get_specific are implemented in iOS 5. dispatch_queue_set_specific warning screenshot

I think something like s.platform = :ios, '5.0' should be presented in the podspec. But I'm not sure about minimal versions for other platforms.

bamx23 avatar Mar 03 '18 19:03 bamx23

Anyone know how to get rid of these warnings?

winzig avatar Jun 01 '18 03:06 winzig

I've solved it by adding these lines into Podfile:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'FMDB'
      target.build_configurations.each do |config|
        config.build_settings['CLANG_WARN_UNGUARDED_AVAILABILITY'] = 'NO'
      end
    end
  end
end

bamx23 avatar Jun 01 '18 09:06 bamx23

Thanks @bamx23

winzig avatar Jun 01 '18 15:06 winzig