cruffenach / CRToast

A modern iOS toast view that can fit your notification needs
MIT License
4.17k stars 463 forks source link

Error in Xcode 15.3 #240

Open asafbaibekov opened 5 months ago

asafbaibekov commented 5 months ago

image

CRToast - Version 0.0.9

yusufkaran commented 5 months ago

I'm having the same problem. Xcode 15.3 CRToast - Version 0.0.9

Ekran Resmi 2024-04-02 11 54 10
lexrus commented 2 months ago

It is not advisable to address this compilation error by manually inserting the type declaration into the source code. Instead, I recommend downgrading from C99 to C98 by applying this exclusive build setting to CRToast.

Screenshot 2024-06-19 at 6 19 11 PM

If you are using CocoaPods, appending this section to the Podfile will make it easier to maintain:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # Workaround for https://github.com/cruffenach/CRToast/issues/240
      if target.name == 'CRToast'
        config.build_settings['GCC_C_LANGUAGE_STANDARD'] = 'gnu89'
      end
    end
  end
end