Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Error when generate Android Keystore on Apple Silicon #3044

Closed
felipefdl opened this issue Dec 23, 2020 · 0 comments · Fixed by #3190
Closed

Error when generate Android Keystore on Apple Silicon #3044

felipefdl opened this issue Dec 23, 2020 · 0 comments · Fixed by #3190

Comments

@felipefdl
Copy link

Description

When I will run expo ba, the cli can't generate android keystore.
I'm believe the CLI has a x86_64 binary, and I'm using Node for ARM not running by roseta.

Environment

Apple Silicon (M1)
Node for ARM

Expo CLI 4.0.16 environment info:
System:
OS: macOS 11.1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.4.0 - ~/.nvm/versions/node/v15.4.0/bin/node
npm: 6.14.8 - ~/.nvm/versions/node/v15.4.0/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 14.3, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
IDEs:
Xcode: 12.3/12C33 - /usr/bin/xcodebuild
npmPackages:
expo: ^39.0.3 => 39.0.3
react: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2
react-native-web: ~0.13.7 => 0.13.18
react-navigation: 4.4.3 => 4.4.3
npmGlobalPackages:
expo-cli: 4.0.16
Expo Workflow: managed

Observed Behavior

If you don't know what this means, let us generate it! :) › Generate new keystore
Failed to generate Android Keystore, it will be generated on Expo servers during the build
keytool exited with non-zero code: 1
Error: keytool exited with non-zero code: 1
    at ChildProcess.completionListener (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
    at Object.onceWrapper (node:events:483:26)
    at ChildProcess.emit (node:events:376:20)
    at maybeClose (node:internal/child_process:1063:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
    ...
    at spawnAsync (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
    at createKeystore (/@expo/xdl@59.0.14/src/credentials/AndroidCredentials.ts:155:18)
    at Object.generateUploadKeystore (/@expo/xdl@59.0.14/src/credentials/AndroidCredentials.ts:198:9)
    at UpdateKeystore.provideOrGenerate (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/src/credentials/views/AndroidKeystore.ts:68:53)
    at UpdateKeystore.open (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/src/credentials/views/AndroidKeystore.ts:39:22)
    at CredentialsManager.run (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/src/credentials/route.ts:41:12)
    at runCredentialsManager (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/src/credentials/route.ts:12:10)
    at AndroidBuilder.collectAndValidateCredentials (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/src/commands/build/AndroidBuilder.ts:88:7)
    at AndroidBuilder.run (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/src/commands/build/AndroidBuilder.ts:33:5)
    at AndroidBuilder.command (/Users/felipefdl/.nvm/versions/node/v15.4.0/lib/node_modules/expo-cli/src/commands/build/BaseBuilder.ts:40:7)

Reproducible Demo

run: expo ba

@felipefdl felipefdl added the bug Something isn't working label Dec 23, 2020
@EvanBacon EvanBacon added error message improvement needed and removed bug Something isn't working labels Feb 4, 2021
@EvanBacon EvanBacon self-assigned this Feb 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants