[Fixed] (Flutter-ios) Unicode Normalization not appropriate for ASCII-8BIT

Опубликовано: 27 Март 2026
на канале: Code Rewind
5,339
71

SORRY about the video quality. Apparently, my settings were messed up. Hopefully, you can still see everything.

Steps:
1. Open Terminal
2. Run command:
a. For zsh : open ~/.zshrc
b. For other: open ~/.profile
3. Add the line to the end of the file: export LANG=en_US.UTF-8
4. Close and restart/clear cache of your IDE

Note: You might have to create zshrc/profile file if it does not exists


This video explains how to fix the following error:
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update

Error 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

/opt/homebrew/Cellar/ruby/3.1.2_1/lib/ruby/3.1.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `unicode_normalize'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `installation_root'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:226:in `podfile_path'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:105:in `markdown_podfile'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:30:in `report'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:66:in `report_error'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:396:in `handle_exception'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:337:in `rescue in run'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:324:in `run'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `top (required)'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `load'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `main'
/opt/homebrew/Cellar/ruby/3.1.2_1/lib/ruby/3.1.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `unicode_normalize'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `installation_root'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:226:in `podfile_path'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:205:in `podfile'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:46:in `run'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `top (required)'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `load'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `main'

Error running pod install
Error launching application on iPhone 11.