Trouble Installing Flutter on OSX - dart

I followed the install instructions for Flutter on OSX, and ended up with this error:
"Dart_NewStringFromUTF8 expects argument 'str' to be valid UTF-8."
Checking the github issues, this one seems to be closed but was not helpful in resolving. I have no weird characters in my file path.
I cannot find anything else on it that will resolve this error, nor do I know what/where to check to find out what is causing this. Anyone else ran into this issue on OSX?

I was able to fix this error by running flutter in verbose mode:
flutter doctor -v
This gave me clues on where the issue was on my machine. There was a directory with a non UTF-8 character and that tripped up the installation process. Renaming that directory solved the error.

Related

`dart create` returns "Error when reading 'create': No such file or directory"

I am trying to create a dart CLI program (I frequently create flutter apps without issue).
I'm following this tutorial and the first step (after installing dart) is
dart create -t console-full cli
however when I do that I get the following error
Error: Error when reading 'create': No such file or directory
I've tried reinstalling dart and that worked just fine, but didn't fix the issue.
I've also tried doing just
dart create example
And I get the exact same error (Error: Error when reading 'create': No such file or directory)
Has anyone else gotten this?
What is the fix for it?
Thanks to comments from #jamesdlin for this answer.
This happens with an older version of dart.
Update to the latest dart to fix it.
brew upgrade dart

Native module cannot be null is happened from?

I pull the last changes from git in my react-native project, when I run the application the process in XCode finished without errors, but when the application is opened gave me this error: "Native module cannot be null".
I have seen many issues in git and the configuration of Libraries is fine, I don't know where is came from this error.
If somebody has encountered this kind of error, please help me.
Thanks in advance

Cordova iOS error, Failed to install the requested application

I am making a Cordova app for iOS on MacOS. When I try to run cordova emulate iOS it ends up returning the following error:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
What's strange is it says ** BUILD SUCCEEDED ** and it wasn't doing this before, and I don't think I changed anything. It's just started happening all of a sudden.
What is causing this?
I found a similar issue here. May be it gives you some ideas to solve the issue.
I have the same issue with you. The cause is that my cordova project path contains the special character ".", like /Users/somepath/path4.2.9/app
After I moved the project to a path without dot, everything works fine.

react native can't find package.json after workaround for load bundle 8081 failed

Facing this error
Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:(Unable to resolve module (see pic below). Indeed, none of these files exist:
iOS Simulation Error
Other forums suggested workaround using
rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json
Now I see the following error in terminal:
No such file or directory
How do I create this package.json? What is causing the localhost error and how can I fix this?
I am facing the same issue. The file you pointed to is probably this -
rm node_modules/react-native/local-cli/core/__fixtures__/files/package.json
However, doing this didnt resolve my issue.

Phonegap: ./create error

I am new with Phonegap, and am using the Terminal to try and develop it with. I am trying to make it so the project is accessible in Xcode.
I'm stuck at creating the project. I type in:
./create ~/Desktop/ProjectFolderName com.myName.hello projectNameForXCodeRefferal
And I am getting the error:
-bash: ./create: No such file or directory
I managed to zone to a bin from using:
~/.cordova
I have been stuck on this for days. I am finding similar errors online, but I have referred to documentation and other StackOverflow topics without success. Is someone willing to give a hand here?
EDIT:
My entire command is this:
/Users/Evee/.cordova/lib/npm_cache/codova-ios/3.8.0/package/bin/create
~/Desktop com.myName.myProj myProj
I get this error now:
-bash: /Users/Evee/.cordova/lib/npm_cache/codova-ios/3.8.0/package/bin/create:
No such file or directory
Any advice?
Nevermind. I am unsure of how I was able to resolve it, but I "SUDO" (aka, root/superuser/elevated admin) commanded to uninstall cordova, and manually entered cordova 2.8.0 as the installation. Following this resource on Github.
https://ccoenraets.github.io/cordova-tutorial/create-cordova-project.html

Resources