Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

expo build:ios throws Reason: Unknown reason, raw: "SSL_connect returned=1 errno=0 state=error: certificate verify failed"

Yesterday I managed to run the command expo build:ios successfully but this morning it just won't work, I get the following error message after entering my credentials:

Trying to authenticate with Apple Developer Portal...
Authentication with Apple Developer Portal failed!
Reason: Unknown reason, raw: "SSL_connect returned=1 errno=0 state=error: certificate 
verify failed"
Set EXPO_DEBUG=true in your env to view the stack trace.

Any idea where the error comes from? I've checked the apple services status and everything is up.

Here's my setup

Expo CLI 3.11.5 environment info:
System:
  OS: macOS 10.14.5
  Shell: 5.3 - /bin/zsh
Binaries:
  Node: 10.16.3 - /usr/local/bin/node
  Yarn: 1.19.1 - /usr/local/bin/yarn
  npm: 6.9.0 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
  Android Studio: 3.4 AI-183.6156.11.34.5692245
  Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
  @storybook/react-native: ^4.1.7 => 4.1.7 
  @types/react: 16.4.7 => 16.4.7 
  @types/react-native: ^0.60.2 => 0.60.2 
  @types/react-navigation: ^3.0.7 => 3.0.7 
  expo: ^33.0.0 => 33.0.7 
  react: 16.8.3 => 16.8.3 
  react-native: https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz => 0.59.8 
  react-navigation: ^4.0.10 => 4.0.10 
npmGlobalPackages:
  expo-cli: 3.11.5
like image 489
Hugo Avatar asked Jan 14 '20 17:01

Hugo


3 Answers

This worked for me:

npm install -g expo-cli
like image 192
Diego Santa Cruz Mendezú Avatar answered Oct 31 '22 19:10

Diego Santa Cruz Mendezú


https://status.expo.io/incidents/vw27kb523vn7?u=mgkr96ykcctd

Turns out it's a known issue. One of Expo's certificates expired.

IMG

like image 5
Andy Tran Avatar answered Oct 31 '22 20:10

Andy Tran


My woking solution :

npm install -g expo-cli

like image 2
Ahmed Taha Avatar answered Oct 31 '22 19:10

Ahmed Taha