[ad_1]
Constructing a react native app with expo and utilizing eas construct --platform ios following this information: https://docs.expo.dev/construct/setup/
I used to be getting a construct error as a result of i had secret variables in a file included on .gitignore, so I am following the directions on this stackoverflow publish: EAS construct fails : Unable to resolve module ./aws-exports
As a substitute of establishing the variables as recommended within the response to that publish, I used eas secret. I’ve 4 secret surroundings variables arrange with eas secret:create following this information: https://docs.expo.dev/build-reference/variables/
In package deal.json, I’ve 4 scripts that get and decode these 4 variables with base64 --decode (base64 -d additionally offers equivalent outcomes).
"scripts": base64 --decode > ./keys-iOS.js",
"tuser": "echo $TEST_USER ,
Constructing offers me this error within the logs:
Script 'eas-build-pre-install' is current in package deal.json, working it...
yarn run v1.22.17
$ npm run ukey && npm run pkey && npm run tuser && npm run puser
> teachassist@1.0.2 ukey
> echo $USER_KEY | base64 -d > ./keys-iOS.js
[stderr] Invalid character in enter stream.
[stderr] error Command failed with exit code 65.
data Go to https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn exited with non-zero code: 65
A response to the linked stackoverflow publish mentioned that to resolve this challenge, i ought to use base64 -di.
I changed every of the 4 instructions with that and bought this error:
Script 'eas-build-pre-install' is current in package deal.json, working it...
yarn run v1.22.17
$ npm run ukey && npm run pkey && npm run tuser && npm run puser
> teachassist@1.0.2 ukey
> echo $USER_KEY | base64 -di > ./keys-iOS.js
[stderr] base64: choice requires an argument -- i
[stderr] Utilization: base64 [-hvDd] [-b num] [-i in_file] [-o out_file]
[stderr] -h, --help show this message
[stderr] -Dd, --decode decodes enter
[stderr] -b, --break break encoded string into num character traces
[stderr] -i, --input enter file (default: "-" for stdin)
[stderr] -o, --output output file (default: "-" for stdout)
[stderr] error Command failed with exit code 64.
data Go to https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn exited with non-zero code: 64
I attempted base64 -d -i and bought the identical error code 64.
How do I decode this efficiently? Is there one other challenge I am lacking?
[ad_2]
