web-dev-qa-db-fra.com

Expo build: ios échoue avec "Erreur lors de la collecte et de la validation des informations d'identification"

J'essaie d'exécuter exp build:ios et il renvoie l'erreur suivante: 

Running: bash.exe -c PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /mnt/c/Users/MyName/AppData/Roaming/npm/node_m
odules/exp/node_modules/@expo/traveling-fastlane-linux/traveling-fastlane-1.4.7-linux-x86_64/validate_Apple_credentials "USERNAME PASSWORD"  

Error while gathering & validating credentials
04:55:52 [exp] Error: Reason:Unknown reason, raw:"{\"authType\"=>\"sa\"}\naa=11CECD94B0A448A2CA74B798F957D91C; Domain=idmsa.Apple.com; Path=/; Secure
; HttpOnly, dslang=US-EN; Domain=Apple.com; Path=/; Secure; HttpOnly, site=USA; Domain=Apple.com; Path=/; Secure; HttpOnly, acn01=ecHGTzyh6KpEMYGK3/n
dp5OBSctZ7OhjWIMEzX9jeHHDdeMxlEYAEHHyjSOfEg==; Max-Age=31536000; Expires=Wed, 22-May-2019 01:55:52 GMT; Domain=Apple.com; Path=/; Secure; HttpOnly"
04:55:52 [exp] Reason:Unknown reason, raw:"{\"authType\"=>\"sa\"}\naa=11CECD94B0A448A2CA74B798F957D91C; Domain=idmsa.Apple.com; Path=/; Secure; HttpO
nly, dslang=US-EN; Domain=Apple.com; Path=/; Secure; HttpOnly, site=USA; Domain=Apple.com; Path=/; Secure; HttpOnly, acn01=ecHGTzyh6KpEMYGK3/ndp5OBSc
tZ7OhjWIMEzX9jeHHDdeMxlEYAEHHyjSOfEg==; Max-Age=31536000; Expires=Wed, 22-May-2019 01:55:52 GMT; Domain=Apple.com; Path=/; Secure; HttpOnly"
04:55:52   

J'essaie de construire sur la plate-forme suivante:

Système d'exploitation: Windows 10 (avec WSL Ubuntu 18.04)
Expo: 27.0.2 

Et avoir les éléments suivants sur package.json

{
  "name": "APP_NAME",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "jest-expo": "^27.0.0",
    "react-native-scripts": "1.11.1",
    "react-test-renderer": "16.2.0"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "Android": "react-native-scripts Android",
    "ios": "react-native-scripts ios",
    "test": "node node_modules/jest/bin/jest.js"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/vector-icons": "^6.3.1",
    "exp": "^54.0.0",
    "expo": "^27.0.2",
    "native-base": "^2.4.4",
    "npm": "^6.0.1",
    "react": "16.3.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-27.0.2.tar.gz",
    "react-native-animatable": "^1.2.4",
    "react-native-autocomplete-input": "^3.5.0",
    "react-native-collapsible": "^0.11.2",
    "react-native-modal": "^5.4.0",
    "react-native-scrollable-tab-view": "^0.8.0",
    "react-native-simple-Twitter": "^1.2.1",
    "react-native-slider": "^0.11.0",
    "react-native-snap-carousel": "^3.7.0",
    "react-native-svg-uri": "^1.2.3",
    "react-native-swiper": "^1.5.13",
    "react-navigation": "^1.5.12",
    "react-redux": "^5.0.7",
    "redux": "^3.7.2"
  }
}

Et aussi app.json

{
  "expo": {
    "name": "APP_NAME",
    "description": "APP_NAME description",
    "slug": "Appname",
    "privacy": "public",
    "sdkVersion": "27.0.0",
    "version": "1.0.0",
    "orientation": "portrait",
    "androidStatusBar": {
        "backgroundColor": "#000000"
    },
    "packagerOpts": {
      "assetExts": ["ttf", "mp4"]
    },
    "ios": {
      "bundleIdentifier": "com.mycompany.myapp",
      "supportsTablet": false
    },
    "Android": {
      "package": "com.mycompany.myapp",
      "versionCode": 4
    }
  }
}

P.S: exécuter exp build:Android fonctionne bien.
Quelle est la cause de cette erreur et comment puis-je la résoudre?

5
Abdulaziz

Connectez-vous simplement à https://appleid.Apple.com/ ou http://itunesconnect.Apple.com et acceptez la mise à jour de la confidentialité.

 Apple id privacy

17
MoOx

Je connaissais exactement la même erreur sur osX aujourd'hui. Et après beaucoup de souffrances, j'ai compris que c'étaient des conditions de service que je devais accepter:

https://idmsa.Apple.com/IDMSWebAuth/signin?appIdKey= ......

une fois que j'ai fait cela, la construction a recommencé à fonctionner.

0
Raj Narayan