- Download the latest Flutter version from the official site.
- Unzip it and move it to Any location on your Mac.
- Open Terminal Any Type sudo nano /etc/paths
- Add this to the file: /Users/yourUserName/Development/flutter/bin (it is actually your flutter bin location)
- Save the file by pressing Ctrl + X then Y and then Enter.
- Close the terminal and reopen it again.
- Run: flutter doctor -v
- Done
This is my personal collection of daily lessons, professional insights, and programming experiences. It’s a space where I document what I learn, and you can explore and learn from my journey too.
Wednesday, January 25, 2023
Flutter command not found , How to Permanently add Flutter Path in Mac OS
Thursday, January 19, 2023
Xcode error 'building for iOS Simulator, but linking in dylib built for iOS .. for architecture arm64' from Apple Silicon M1 Mac
Add This at the end of your Podfile,
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
then Command pod install
command not found: brew macos (Mac is M1-based)
If your shell is zsh and your Mac is M1-based, enter these two commands after installing brew:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"
The first command adds:
- an expanded
PATHvariable that includes the directories wherebrewand commands installed withbreware located - several shell variables used by
brew
to the .zprofile initialization file.
The second command adds those same variables to the current shell, so that you can start using brew without re-reading .zprofile.
- PS: For Intel Macs, use
/usr/localinstead of/opt/homebrew. - PPS: If you are running
bash, use.bashrcinstead of.zprofile.
Tuesday, January 17, 2023
install_failed_user_restricted miui 13 after Deny during first time installation
In my case, I pressed Deny unfortunately during the first time installation. So I was getting INSTALL_FAILED_USER_RESTRICTED.
1) Turn ON Developer Options
Settings > About phone > keep tapping ‘ MIUI version ‘ until it says you’re a developer.
2)Settings->Additional Settings->Developer Options
First For MIUI global 13 and above to turn off MIUI optimization
- go to the developer option
- go down where button one was "Reset to default values"
- press it 5 times or more,
- then the turn-off MIUI optimization is visible
3) Turn ON USB Debugging
4) Turn OFF MIUI optimization
5) Turn ON Install via USB All Done