世博会建设:ios失败,收集"错误验证凭证"

时间:2018-05-22 02:03:18

标签: react-native react-native-ios expo

我试图运行exp build:ios并返回以下错误:

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   

我试图在以下平台上构建:

操作系统:Windows 10(使用WSL Ubuntu 18.04)
世博会:27.0.2

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"
  }
}

还有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:正常运行exp build:android 导致此错误的原因是什么,我该如何解决?

2 个答案:

答案 0 :(得分:17)

只需连接到http://itunesconnect.apple.comapple id privacy并接受隐私更新。

{{3}}

答案 1 :(得分:0)

我今天在osX上遇到了完全相同的错误。在经历了很多痛苦之后,我发现这是我需要接受的服务条款:

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

一旦我这样做,构建就开始了。