Quantcast
Channel: Active questions tagged cocoapods - Stack Overflow
Viewing all articles
Browse latest Browse all 1028

Flutter Cocoapods Issue

$
0
0

I have been encountering this same issue since last year when I got my new mac m2 for IOS development with flutter(3.0) & cocoapods(1.10.2) it was working fine until I upgraded it to greater than 1.10.2!! I have tried 1.11.0, 1.13 & so on....currently I am working on 1.15.2!! Same error and I am unable to even de bug my code due to this error I dunno what is causing this I have tried everything from uninstalling - reinstalling and even terminal zhsrc shell's configuration like this -

export lc_all=en_us.utf-8export LC_ALL=en_US.UTF-8LC_ALL=en_US.UTF-8export LANG=en_US.UTF-8export LANGUAGE=en_US.UTF-8export LC_ALL=en_US.UTF-8export PATH="/Users/jayptl/src/homebrew/bin"export PATH="$PATH:/Users/my_user_name/src/flutter/bin"export PATH="$PATH":"$HOME/.pub-cache/bin"export LC_ALL=en_US.UTF-8export JAVA_HOME=$(/usr/libexec/java_home)export PATH="$PATH:/Users/jayptl/src/.bun/bin"export PATH="/usr/local/bin:$PATH"# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.export PATH="$PATH:$HOME/.rvm/bin"PATH=/bin:/usr/bin:/usr/local/bin:/sbin:${PATH}export PATHif [ -d "/Users/jayptl/src/homebrew/opt/ruby/bin" ]; then  export PATH=/Users/jayptl/src/homebrew/opt/ruby/bin:$PATH  export PATH=`gem environment gemdir`/bin:$PATHfi

Now the error encountered is -

Launching lib/main.dart on iPhone 15 Pro in debug mode...CocoaPods' output:↳      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo updateError output from CocoaPods:↳        WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.        Consider adding the following to ~/.profile:        export LANG=en_US.UTF-8    /Users/jayptl/src/homebrew/Cellar/ruby/3.3.3/lib/ruby/3.3.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:167:in `unicode_normalize'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:167:in `installation_root'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:227:in `podfile_path'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface/error_report.rb:105:in `markdown_podfile'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface/error_report.rb:30:in `report'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:66:in `report_error'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/claide-1.1.0/lib/claide/command.rb:396:in `handle_exception'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/claide-1.1.0/lib/claide/command.rb:337:in `rescue in run'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/claide-1.1.0/lib/claide/command.rb:324:in `run'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/bin/pod:25:in `load'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/bin/pod:25:in `<main>'    /Users/jayptl/src/homebrew/Cellar/ruby/3.3.3/lib/ruby/3.3.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:167:in `unicode_normalize'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:167:in `installation_root'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:227:in `podfile_path'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:206:in `podfile'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:46:in `run'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/bin/pod:25:in `load'        from /Users/jayptl/src/homebrew/lib/ruby/gems/3.3.0/bin/pod:25:in `<main>'Error running pod installError launching application on iPhone 15 Pro.

I have tried everything from uninstalling - reinstalling and even terminal zhsrc shell's configuration as shown above. I have tried reinstalling Cocoapods, rosetta, xCode, VsCode, android studio, flutter even...nothing helps it just works on 1.10.2 and that is depreciated I have some flutter packages such as firebase app check requiring Cocoapods 1.13.0 at least...at least higher than 1.10.2!!!

Flutter doctor shows nothing is wrong and everything is green!!

I am working on flutter 3.22.0 & Cocoapods 1.15.2(1.10.2 works just fine but depreciated.)

I need to debug my code and to run it on an iOS simulator(A flutter application).


Viewing all articles
Browse latest Browse all 1028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>