Substrate-node-template build fail - substrate

I followed this tutorial https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/.
I got the below error when run cargo build --release.
How can I fix it?

The issue with prost is Latest nightly does not build 0.7.0. Either update prost version 0.8.0 or pin nightly to a version before rustc 1.56.0-nightly (50171c310 2021-09-01)
There will be an update shortly on the node template to fix this on the latest tag that includes the patch needed

Related

How to install an older version of gomobile

after an OS re-install (MacOS Big Sur) I'm trying to get my go & gomobile development environment set up again. I have a specific version requirement for my app so I am using go 1.13.x, installed via homebrew.
I then installed gomobile via the command: go get golang.org/x/mobile/cmd/gomobile
The problem occurs when I run the following command: gomobile init, this throws the following error:
gomobile: Go 1.16 or newer is required
Before the OS rebuild I had the same go version (1.13.x) installed and gomobile worked, it never threw that error. After googling a bit my question is, is there a repository or place where I can download the gomobile binary for an earlier version? The website seems to only show a single "v0" version, which is the one causing the problem. Perhaps even if there's a way to build an older version from source?
Thanks in advance for any pointers!
Per the Go release policy, Go 1.13 hasn't been supported by the Go project for quite some time — for example, it hasn't received any security fixes since August 2020.
Instead of downgrading gomobile, upgrade to a supported version of the Go toolchain — see https://golang.org/doc/install for instructions.

How to integrate react-native-text-detector successfully?

The documentation for this library's install has been followed step for step.
npm install react-native-text-detector --save
added pod "RNTextDetector", path: '../node_modules/react-native-text-detector/ios to pod file
did not manually link binary or add file to library in Xcode
However the build continually fails. it fails in the same way when trying to integrate react-native-tesseract-ocr, one of the dependencies for this library.
the build error:
-weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
I was having the same problem...
After some more research, I looked into a few things regarding tesseract-ocr for iOS that helped get everything up and running as expected.
Install react-native-text-detector per the repo's README
Added the linker flag -lstdc++ in Xcode build settings
Set the build setting Enable Bitcode to NO in Xcode build settings
Followed the README in this repo, https://github.com/Kila2/libstdc-.6.0.9.tbd/blob/master/README.md
After that I was able to build and run both on the iOS simulator and on a test device.
I have 11.3, the latest stable version.

Getting the following build error under iOS

I'm using latest NS, TNS and tns-ios and getting the following error
node_modules/tns-core-modules/ui/styling/gradient.d.ts(7,25): error TS6143: Module '../../css/parser' was resolved to '/Users/asrock/Documents/test/node_modules/tns-core-modules/css/parser.js', but '--allowJs' is not set.
I cleaned my project - and now the typescript compiler fails and exit.
Using TS 2.4.2.
NS 4.1, TNS-CORE 4.1 and TNS-IOS 4.1
This is the tns build iOS output
`
Support for Node.js ^6.0.0 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest Node.js LTS version.
Support for macOS 10.12 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest macOS version.
Executing before-prepare hook from /Users/asrock/Documents/test/hooks/before-prepare/nativescript-dev-sass.js
Found peer node-sass
Executing before-prepare hook from /Users/asrock/Documents/test/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
node_modules/tns-core-modules/ui/styling/gradient.d.ts(7,25): error TS6143: Module '../../css/parser' was resolved to '/Users/asrock/Documents/test/node_modules/tns-core-modules/css/parser.js', but '--allowJs' is not set.
TypeScript compiler failed with exit code 1`
I experienced that error and I managed to fixed it. If you're using nativescript-angular you need to upgrade your angular version to 6 and it's dependencies.
You can follow this link https://www.nativescript.org/blog/upgrading-to-nativescript-webpack-0.12.0. Nativescript-core or nativescript-angular.
Hope this helps! Happy coding.
Needed typescript#2.7.2.
Nice if NS printed a message somewhere.

first build of maven project with jenkins failed

I am trying to start my first build on Jenkins, but it failed, since I am a beginner, even I got those console output, still don't know how to solve the problem, anyone can help me?jenkins version: 1.6.0.4 JDK: 1.8.0 maven:3.5.0
enter image description here
It is a bug opened with maven 3.5.0
https://issues.jenkins-ci.org/browse/JENKINS-43446
Downgrading the maven to any old stable version, i.e., 3.2.5 or 3.3.1, would make it work.

Compiler update for Carthage project

I got a project, which is built with Carthage and uses swift2.0. I am trying to run the project, but encountered this issue:
Module file was created by a newer version of the compiler.
After struggling for about 1 hour, I found that this error occurs when I trying to build Carthage project in newer version of Xcode. My version is 7.2 and the project was built using a newer compiler version.
How can I build this project in Xcode 7.2? I don't want revert my xcode version.
Any help would be appreciated.
After upgrading my xcode version to 7.3, the problem has fixed.

Resources