VSCode: Dart Project Issues/Command 'Dart: New Project' resulted in an error (Stagehand exited with code 127, No such file or directory - dart

When I try to create a new Dart project on VSCode, I get the following error:
https://i.stack.imgur.com/dii5H.png
Does anyone know how to resolve this? Thanks!
[error message reads:
Command 'Dart: New Project' resulted in an error (Stagehand exited with code 127. /bin/sh: /Users/redacted-name/Development/flutter/bin/cache/dart-sdk/bin/pub: No such file or directory )

Related

Flutter can't execute FirebaseCrashlytics run script

faced with issue when try to build Flutter application with Firebase Crashlytics and got this error.
/Users/andrew/folder/ios/Pods/FirebaseCrashlytics/run: line 2:
: command not found
/Users/andrew/folder/ios/Pods/FirebaseCrashlytics/run: line 38:
: command not found
/Users/andrew/folder/ios/Pods/FirebaseCrashlytics/run: line 41:
: command not found
/Users/andrew/folder/ios/Pods/FirebaseCrashlytics/run: line 77: syntax error: unexpected end of file
Command PhaseScriptExecution failed with a nonzero exit code
There is my settings.
Does anybody faced with same issue?
Previous version "Fabric" works fine.

roslaunch franka_example_contollers joint_position_example_controller_sim.launch

I get the following error while executing roslaunch franka_example_contollers joint_position_example_controller_sim.launch
ERROR:
RLException: [joint_position_example_controller_sim.launch] is neither a launch file in package [franka_example_contollers] nor is [franka_example_contollers] a launch file name
The traceback for the exception was written to the log file
Any solutions for this error ?

Command PhaseScriptExecution failed with a nonzero exit code I

I am getting the below error
/Users/user321/Desktop/MapForAppNewest/Pods/Target Support
Files/Pods-MapForAppNewest/Pods-MapForAppNewest-frameworks.sh: line
114: local: `=': not a valid identifier
/Users/user321/Desktop/MapForAppNewest/Pods/Target Support Files/Pods-MapForAppNewest/Pods-MapForAppNewest-frameworks.sh: line
114: local:
`/Users/user321/Desktop/MapForAppNewest/Pods/Mapbox-iOS-SDK/dynamic/826E141E-8875-3C3B-A106-2B772F8A0684.bcsymbolmap':
not a valid identifier
Command PhaseScriptExecution failed with a nonzero exit code
I have found many similar questions but they all failed to address this specific problem and offer a solution which works here. So I ask What is the problem here and how do I go about fixing it? (im using Swift and Firebase)
Open the file - /Users/user321/Desktop/MapForAppNewest/Pods/Target Support Files/Pods-MapForAppNewest/Pods-MapForAppNewest-frameworks.sh
On line 114, delete the spacing before and after '='
Clean and build project
This worked for me
In my case, it was caused by renaming of the folder name (the folder containing the project)
I cloned my project 'hovermind' into 'Foo' folder
Installed pods
Then renamed (for some reason) 'Foo' into 'Foo XXX'
The error I was getting Command PhaseScriptExecution failed with a nonzero exit code ... /Hassan/Desktop/Foo: no such file ...
Solution
I just renamed back the folder name to 'Foo' ('Foo XXX' -> 'Foo') and it worked

when i build "gomobile bind" a go project with opencv4 ,error come ,how can i solve

Gomobile bind error
The array mean what, Anybody ever had this problem?
go build -tags ios -buildmode=c-archive -o/var/folders/vp/3ztk4jzn3hq35qfmp3qwrfm80000gp/T/gomobile-work135205628/faceTest-arm.a gobind failed: exit status 2
# gocv.io/x/gocv
In file included from calib3d.cpp:1:
In file included from ../../../../../gocv.io/x/gocv/calib3d.h:5:
In file included from /usr/local/Cellar/opencv/4.0.0/include/opencv4/opencv2/opencv.hpp:52:
In file included from /usr/local/Cellar/opencv/4.0.0/include/opencv4/opencv2/core.hpp:52:
/usr/local/Cellar/opencv/4.0.0/include/opencv4/opencv2/core/cvdef.h:659:10:
fatal error: 'array' file not found

No such file or directory when generate framework

When I make a new framework with aggregate to generate universal framework , but a error present , as follow :
cp: build/Release-iphoneos/TEST.framework/: No such file or directory
fatal error: lipo: can't open input file: build/Release-iphoneos/TEST.framework/TEST (No such file or directory)
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
And here is a screenshot of the error:
This is a new target , I only want to test generate framework , but fail!
As the error message said, no TEST.framework can be found in the path <PROJECT_DIR>/build/Release-iphoneos/TEST.framework.
You need to check the script you use, or the blog post which you reference is out-date.
First you should build the target specified in xcodebuild command directly to see if it can build succeed.
Check what the actual build path is. If the path(build/) is not exist, you can try to specified the build path for xcodebuild, OBJROOT=${WRK_DIR} SYMROOT=${WRK_DIR}

Resources