React Native error on a line that doesn't exist - react-native

I'm getting an error with the command trying to create my APK file so I can publish to the play store.
I'm running this command
./gradlew assembleRelease
The error I'm getting is
* Where:
Build file '/Users/frankinstyyn/Web Dev/Dyscalculator/react-native-
calculator/MyProject/android/app/build.gradle' line: 225
* What went wrong:
Could not compile build file '/Users/frankinstyyn/Web Dev/Dyscalculator/react-native-
calculator/MyProject/android/app/build.gradle'.
> startup failed:
build file '/Users/frankinstyyn/Web Dev/Dyscalculator/react-native-
calculator/MyProject/android/app/build.gradle': 225: Unexpected character: '"' # line
225, column 43.
ord System.console().readLine("\Alias pa
^
The main issue I have is that line doesn't exist in my file - I only have 25 lines.
Any help would be appreciated!
Thanks

Related

Xcode 13 build error - Command PhaseScriptExecution failed with a nonzero exit code

Cannot build with xcode 13, I keep getting this error.
I have tried everything from this thread but nothing works, https://github.com/react-native-community/upgrade-support/issues/161
I've nuked the repo pulled down again and still get the same error. I'm out of ideas, can anyone please help?
/bin/sh -c /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-glxuojrfejxbhqgircpjgklctbto/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-85ABEEFECFDEC6A1611D2CF5A77EABBC.sh
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: readlink: command not found
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: dirname: command not found
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: cd: : No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Using xcode 13, RN 64.2, macOS Big Sur 11.6
Fixed by modifying generate-specs.sh
https://github.com/facebook/react-native/issues/32157#issuecomment-915165442
Try to add arm64 in debug & Release if excluded archivecture

Building Chromium on windows throws an error message

After fetching Chromium's source code, I executed the following command
$ gn gen out/Default
This results in an execution error:
/c/src/depot_tools/gn: line 8: exec: python3: not found
What's the problem and how to solve this error?

Xcode build error: PhaseScriptExecution Strip\ Frameworks /appName.build/Debug-iphonesimulator/PROD.build/Script-8CBD27422B744FC9C0407AA3.sh

I am really struggling to understand the internals of Xcode, the latest error I am getting is this one:
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Strip\ Frameworks /Users/danale/Library/Developer/Xcode/DerivedData/build/Build/Intermediates.noindex/NFIBEngage.build/Debug-iphonesimulator/PROD.build/Script-8CBD27422B744FC9C0407AA3.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/NFIBEngage.app
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.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/NFIBEngage.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
How do I go about resolving this? None of what I have seen thus far has worked. The application itself loads just fine inside of simulator, but I keep getting build failures.
I was getting this error when I had React Native 0.53.3 and React 16.2 and I continue to get this error when I upgraded to React Native 0.59.9 and React 16.8.
The PhaseScriptExecution Strip\ Frameworks /appName.build/Debug-iphonesimulator/PROD.build/Script-8CBD27422B744FC9C0407AA3.sh Xcode build error was related to some configuration inside of ios/Pods/Pods.xcodeproj/project.pbxproj where the configuration in those files look something like this:
9B41C3B09EAC07B2B007DE0F /* Strip Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Strip Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "bash \"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/InstabugCore.framework/strip-frameworks.sh\"\n";
};
Once I completely removed references to 8CBD27422B744FC9C0407AA3 the error went away.

How can I fix this bug with ScyllaDB?

I'm trying to work through the ScyllaDB tutorial series here: https://www.scylladb.com/2017/11/30/mutant-monitoring-system-day-1/
I've got a Docker container running (on Windows, using Powershell) and have cloned their repo, and run it with Docker Compose:
PS C:\repos\scylla-code-samples\mms> docker-compose up -d
mms_scylla-node3_1 is up-to-date
mms_scylla-node2_1 is up-to-date
Creating mms_scylla-node1_1 ... done
Trying to check its status with the nodetool returns a container restarting error:
PS C:\repos\scylla-code-samples\mms> docker exec -it mms_scylla-node1_1 nodetool status
>>
Error response from daemon: Container c2940e14078fcdbbcf70f60392b05eb3d5c90273a15970c8575aad46cd797a02 is restarting, wait until the container is running
The logs show these unexpected end of file errors:
2019-03-05T09:39:36.882128500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:40:38.038237500Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:40:38.038383700Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:41:38.922861400Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:41:38.923067400Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:42:39.801821900Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:42:39.802078500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:43:40.696641100Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:43:40.696928800Z /start.sh: line 36: syntax error: unexpected end of file
How can I fix this, preferably without writing code?
The \r is indicative of windows-style carriage returns, so maybe it is related to your Windows environment somehow. Advise is to try this on a Linux box, and in parallel open a bug with the scylla-code-samples.git project so that it can be fixed.
On windows, you can try using the Docker Toolbox which uses a Virtual Box based docker host rather than the one that's part of the new "Docker for Windows". This ensure that you are running on Linux without having a Linux box.
Even though it says "Legacy Desktop Solution" It still works well.
https://docs.docker.com/toolbox/toolbox_install_windows/

Unable to setup WebRTC native android code on ubuntu instance

Followed steps provided in this web page https://webrtc.org/native-code/android/
When I executed command "ninja -C out/Debug AppRTCMobile" I got following response
ninja: Entering directory `out/Debug'
ninja: fatal: chdir to 'out/Debug' - No such file or directory
I got stuck here and need help to continue in executing the next steps to complete the code setup.
Ubuntu version - 16.04.2
I have followed the same procedure once again to setup the code. This time I got a new error
Steps:
-> fetch --nohooks webrtc_android
-> gclient sync
-> gn gen out/Debug --args='target_os="android" target_cpu="arm"'
-> ninja -C out/Debug
ninja: Entering directory `out/Debug'
[1/8508] ACTION
//base:android_runtime_jni_headers__jni_Runtime(//build/toolchain/android:android_clang_arm)
FAILED: gen/android_runtime_jni_headers/base/jni/Runtime_jni.h python
../../base/android/jni_generator/jni_generator.py --depfile
gen/base/android_runtime_jni_headers__jni_Runtime.d --jar_file
../../third_party/android_tools/sdk/platforms/android-26/android.jar
--input_file java/lang/Runtime.class --ptr_type=long --output_dir gen/android_runtime_jni_headers/base/jni --includes
../../../../../../base/android/jni_generator/jni_generator_helper.h
--native_exports_optional
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1428,
in
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1421,
in main
GenerateJNIHeader(input_file, output_file, options) File "../../base/android/jni_generator/jni_generator.py", line 1326, in
GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 662,
in CreateFromClass
stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in
_execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[3/8508] CC obj/third_party/boringssl/boringssl/v3_ncons.o
ninja: build stopped: subcommand failed.
Someone please help me in resolving this issue.
You have to generate the projects using GN before trying to compile. You have the instructions here:
https://webrtc.org/native-code/android/