MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
275 stars 245 forks source link

iOS build fails with the dependecy #270

Closed trmobile closed 2 years ago

trmobile commented 2 years ago

Hi,

The iOS build fails with the following error, on android the build works fine

CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using ARCHS setting to build architectures of target Pods-Runner: (``) Finding Podfile changes A flutter_appauth

2 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/ffi-1.15.4/lib/ffi.rb:5:inrescue in <top (required)>' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/ffi-1.15.4/lib/ffi.rb:2:in <top (required)>' 2 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/ethon-0.14.0/lib/ethon.rb:3:in <top (required)>' 2 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in <top (required)>' 2 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440:in download_typhoeus_impl_async' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372:indownload_and_save_with_retries_async' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365:in download_file_async' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338:indownload_file' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:284:in ensure_versions_file_loaded' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:208:insearch' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/aggregate.rb:83:in block in search' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/aggregate.rb:83:inselect' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/aggregate.rb:83:in search' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:416:increate_set_from_sources' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:385:in find_cached_set' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:360:inspecifications_for_dependency' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:165:in search_for' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:274:inblock in sort_dependencies' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:267:in each' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:267:insort_by' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:267:in sort_by!' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:267:insort_dependencies' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:60:in block in sort_dependencies' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:77:inwith_no_such_dependency_error_handling' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:59:in sort_dependencies' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:754:inpush_state_for_requirements' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:744:in require_nested_dependencies_for' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:727:inactivate_new_spec' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:684:in attempt_to_activate' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:inprocess_topmost_state' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in resolve' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:inresolve' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:94:in resolve' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1078:inblock in resolve_dependencies' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in section' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1076:inresolve_dependencies' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:124:in analyze' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:416:inanalyze' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:241:in block in resolve_dependencies' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:insection' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240:in resolve_dependencies' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:161:ininstall!' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:52:in run' /Users/xxxx/.rvm/rubies/ruby-3.0.2/lib/ruby/gems/3.0.0/gems/claide-1.0.3/lib/claide/command.rb:334:inrun' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in run' /Users/xxxx/.rvm/gems/ruby-3.0.2/gems/cocoapods-1.11.2/bin/pod:55:in<top (required)>' /usr/local/bin/pod:23:in load' /usr/local/bin/pod:23:in

'


    ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

    [!] Oh no, an error occurred.
    Search for existing GitHub issues similar to yours:

 https://github.com/CocoaPods/CocoaPods/search?q=incompatible+library+version+-+%2FUsers%2Fxxxx%2F.rvm%2Frubies%2Fruby-3.0.2%2Flib%2Fruby%2Fgems%2F3.0.0%2Fgems%2Fffi-1.15.4%2Flib%2Fffi_c.bundle&type=Issues

    If none exists, create a ticket, with the template displayed above, on:
    https://github.com/CocoaPods/CocoaPods/issues/new
    Be sure to first read the contributing guide for details on how to properly submit a ticket:
    https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
    Don't forget to anonymize any private data!
    Looking for related issues on cocoapods/cocoapods...
    Found no similar issues. To create a new issue, please visit:
    https://github.com/cocoapods/cocoapods/issues/new
Error output from CocoaPods:
↳
    Ignoring executable-hooks-1.6.1 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6.1
    Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
    Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0
    Ignoring unf_ext-0.0.8 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.8
    Ignoring unf_ext-0.0.7.7 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.7

Error running pod install
Error launching application on iPhone 11.
MaikuB commented 2 years ago

Nothing you posted there alludes to an issue with this plugin. You'll need to take a closer look at the error and resolve whatever issue is there on your end. If it was to do with this plugin then there should be more reports on this. The example app would've failed to build as well yet you can see here that the last build was fine

trmobile commented 2 years ago

Hi, Thanks for replying. I have a weird problem, i'm able to run the example project in M1 mac, but it fails in Intel Machine i have tried many ways with solutions provided in online forums but no luck. Could you kindly help me some way to solve this issue? i got it verified in my friends mac(intel) it works, but mine the pod install error always throws.

Regards, Thejas

On Wed, Dec 15, 2021 at 2:00 PM Michael Bui @.***> wrote:

Nothing you posted there alludes to an issue with this plugin. You'll need to take a closer look at the error and resolve whatever issue is there on your end. If it was to do with this plugin then there should be more reports on this. The example app would've failed to build as well yet you can see here https://github.com/MaikuB/flutter_appauth/runs/4297843711 that the last build was fine

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MaikuB/flutter_appauth/issues/270#issuecomment-994490451, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5Y7TWOVWTY4KI4CKU3ASDURBGZNANCNFSM5J5YHJPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.