Hello i updgraded my flutter version(1.17.4 to 2.0.0) and i was working in my proyect normally and this issue showed up. but i don't know how i can fix it.
try to use a sudo flutter doctor -v or reinstall your flutter version.
For MacOS : https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
Related
I just wanted to try react-native.However, after run the script "npm run ios",I got this error in the Xcode's simulator.
react-native version: v0.66.0,
platform: Mac OS Big Sur 11.6.2,
How can I fix this?
install '#react-native/normalize-color' using command line npm i #react-native/normalize-color
Try installing '#react-native/normalize-color#2.0.0' if you are using 'react-native-maps'. This worked for me. It's probably because we may be using an older version of 'react-native' which included an older version of 'normalize-color'.
I am very new to Apple and app programming so please forgive me if I am not asking my questions in the perfect "format" that you might be expecting...
I bought my MacBook Air running on M1 chip just few days ago and would like to program with Xcode and React Native. As I do the common command "npx react-native init AwesomeProject" I got into the error which I saw quite some other people also run into:
error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.
I tried all of the suggestions available on other posts (assuming I am understanding the remedies correctly and making the changes accordingly) but none seem to work for me.
I tried also the default suggested solution which is:
Please try again manually: "cd ./AwesomeProject/ios && pod install".
And I seem to get something different from others, which is:
Analyzing dependencies Fetching podspec for DoubleConversion from
../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
Fetching podspec for RCT-Folly from
../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec
Fetching podspec for glog from
../node_modules/react-native/third-party-podspecs/glog.podspec
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.1/lib/ffi/library.rb:275: [BUG]
Bus Error at 0x0000000102a08000 ruby 2.6.3p62 (2019-04-16 revision
67580) [universal.arm64e-darwin20]
and then
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Is it something to do with my Ruby interpreter? If yes, what are the commands I could use to solve the issue???
https://github.com/CocoaPods/CocoaPods/issues/10349#issuecomment-849468291
brew install cocoapods
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
In my case, need to restart my terminal before execute pod install. Monterey + M1.
The top answer doesn't work for me on my MBP M1 so I fixed the issue this way :
Make sure you have opened project.xcworkspace and not the project.xcodeproj
Open the workspace file with xcode with clicking on it then go to File -> Workspace Settings ... -> Build System -> Legacy Build System
Select the project file then the Target then go to Build Settings Tab and Search Paths
Double click on Library Search Paths Debug and move the $(inherited) to the bottom of the list
Do the same for the Release .
Then Build Again and you're good to go .
If you still get any errors run these commands in the ios folder of the react native project and do the above steps again and it will build successfully.
rm -rf ~/Library/Developer/Xcode/DerivedData/
pod deintegrate
pod install
If you are facing this issue in Mac Big Sur, reinstalling CommandLineTools can fix this issue.
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
I am running on a Mac, I downloaded Flutter through Git and can confirm that the files are all there, I also successfully updated my path in my ~/.zshrc file. This was all working fine until I ran flutter upgrade, after which the flutter command stopped working. I confirmed this by running which flutter and the output was:
/Users/aamir/development/flutter/bin/flutter
which looks correct. However, running flutter in my terminal gives me back this error:
: command not foundpment/flutter/bin/internal/shared.sh: line 5:
Not sure what's the issue here
So I worked this out by manually downloading the flutter SDK then replace it into the original flutter folder. I think it's a problem with the flutter upgrade not being able to completely revert the changes it made after failing to upgrade from the command line.
For zsh:
For zsh (Apple M1):
1.Open Terminal
2.Run: nano ~/.zshrc
3.Add: export PATH=[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin:$PATH
4.Run: source ~/.zshrc
5.restart terminal
6.Run: flutter doctor -v
I can´t seem to find the problem, but definitely it has to do with the fact that i have done the following updates:
Mac os version: 10.15.1 macOs catalina
Xcode 11.2
ios 13.2
After this, i tried to run sidekick but it gave me errors, and i´ve passed through this before so i thought do the updates manually in my terminal but i´m stuck when i run this:
sudo gem install cocoapods or even without sudo, the error is always the same and i don´t know what to do:
ERROR: Error installing cocoapods:
invalid gem: package metadata is missing in /Library/Ruby/Gems/2.6.0/cache/httpclient-2.8.3.gem
Help!
Thanks for your time
I recently got noticed in the Sidekick application on mac OS that a new version of the CLI was released and that I needed to update.
I quit Sidekick and run the "sudo tns i -g nativescript#latest --unsafe-perm" command in terminal with the following results:
+ nativescript#5.1.1
updated 67 packages in 14.325s
When I try to start Sidekick I get the following error:
Sidekick prompt
I head back to terminal and run "tns doctor" with the following results:
✔ Getting environment information
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 10.1.0 satisfies minimum required version 9.
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 5.1.0 and the latest available version is 5.1.1.
It seems like the update are not recognized by either tns doctor or Sidekick, what should I do to fix this?
Do you have nvm? This can happen when the settings in terminal are different from the global ones. For example it is possible to use one node version in the terminal and other from globally installed Sidekick.
You shouldn't use sudo - see this blog post on details on how to resolve the issue by removing the need for superuser while doing NPM installs. Similar thread here
On tns doctor command we got this message: Getting NativeScript components versions information...
This after tried to update with: sudo npm install nativescript -g --unsafe-perm
after that we got a lot of error messages.
Solved with this simply command:
tns proxy clear
then run: sudo npm install nativescript -g --unsafe-perm
Solved!