ThexXTURBOXx / flutter_web_auth_2

Flutter plugin for authenticating a user with a web service
https://pub.dev/packages/flutter_web_auth_2
MIT License
53 stars 54 forks source link

Unable to build on MacOS after raising minimum target version to 10.15 (11.0) #54

Closed KartikAiyer closed 1 year ago

KartikAiyer commented 1 year ago

Describe the bug

Attempting to build for MacOS fails with cocopods install step failing. I've tried raising the minimum target version in the MacOs Podfile as well as in XCode Project but I still see the error.

dlopen(/opt/homebrew/lib/ruby/gems/3.2.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): Library not loaded

Also I've tried all the main suggestions of reinstalling gem and cocoapods and updating Ruby and in all cases I still see the same problem.

I thought this was a flutter issue to begin with and posted here but I was informed that it was likely due to my target version in the MacOS app.

I have not tried to build this for iOS but suspect that I will run into the same issue and probably has the same fix of updating the target version appropriately.

I'm not sure if I'm currently updating the minimum target version correctly or if there are some other places that I'm missing out on in order to get this to work.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new flutter project flutter create bug --platforms macos
  2. Add the Flutter Web Auth 2 as a dep: flutter pub add flutter_web_auth_2
  3. Raise minimum target version in Podfile and in XCode Project
    • I modify the first line of the Podfile in the macos folder setting the version to 10.15 (i've tried 11.0 too).
      • platform :osx, '11.0'
    • I open the XCode Project -> Runner -> Target -> Runner -> Minimum Target Version -> 10.15 (or 11.0)
  4. In the macos folder invoke pod install cd macos; pod install
dlopen(/opt/homebrew/lib/ruby/gems/3.2.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): Library not loaded

Expected behavior

I should be able to build on Mac OS.

Screenshots

Updated Mac OS Minimum Target version in the Xcode prooject Screenshot 2023-07-30 at 1 32 31 PM

Device (please complete the following information!)

Checklist

ThexXTURBOXx commented 1 year ago

Sadly, I have no Apple device to debug that on. So someone else needs to do that, sadly

ThexXTURBOXx commented 1 year ago

This seems to have been fixed by the comment in the linked issue