Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Xcode 15.3 #240

Open
asafbaibekov opened this issue Mar 25, 2024 · 2 comments
Open

Error in Xcode 15.3 #240

asafbaibekov opened this issue Mar 25, 2024 · 2 comments

Comments

@asafbaibekov
Copy link

asafbaibekov commented Mar 25, 2024

image

CRToast - Version 0.0.9

@yusufkaran
Copy link

I'm having the same problem.
Xcode 15.3
CRToast - Version 0.0.9
Ekran Resmi 2024-04-02 11 54 10

@lexrus
Copy link

lexrus commented Jun 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants