IOS build failures

Keep getting npm errors with my ios builds. even build from untouched branches that used to build without problems. The local npm install doesnt show any errors. See added screenshot for the errors.

These are not errors, [stderr] means that the logs were written to stderr (logs without this tag were written to stdout)

1 Like

thank you for the reply. You’re right. but immediately after these logs the job fails. with the following error:

Mon, 15 Feb 2021 09:58:32 GMT
[stderr]
Mon, 15 Feb 2021 09:58:32 GMT
[stderr] npm
Mon, 15 Feb 2021 09:58:32 GMT
[stderr] ERR! code E500
Mon, 15 Feb 2021 09:58:32 GMT
[stderr] npm ERR!
Mon, 15 Feb 2021 09:58:32 GMT
[stderr] 500 Internal Server Error - GET http://10.254.24.98:4873/@webassemblyjs%2futf8/-/utf8-1.8.5.tgz
Mon, 15 Feb 2021 09:58:32 GMT
[stderr]
Mon, 15 Feb 2021 09:58:32 GMT
[stderr] npm ERR! A complete log of this run can be found in:
Mon, 15 Feb 2021 09:58:32 GMT
[stderr] npm ERR!     /Users/expo/.npm/_logs/2021-02-15T09_58_32_228Z-debug.log
Mon, 15 Feb 2021 09:58:32 GMT
Xcode build logs not found
Mon, 15 Feb 2021 09:58:32 GMT
Build failed: npm exited with non-zero code: 1

I traversed the dependency tree on my local machine and @webassemblyjs is not present. Does the worker have external dependecies or do you think that the problem is with one of my deps?

  "dependencies": {
    "@gorhom/animated-tabbar": "^2.1.1",
    "@gorhom/bottom-sheet": "^2",
    "@hookform/resolvers": "^1.1.1",
    "@react-native-async-storage/async-storage": "^1.13.2",
    "@react-native-community/cli": "4.13.0",
    "@react-native-community/cli-platform-android": "4.13.0",
    "@react-native-community/cli-platform-ios": "4.13.0",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-native-community/slider": "^3.0.3",
    "@react-native-firebase/app": "^10.6.4",
    "@react-native-firebase/auth": "^10.6.4",
    "@react-native-firebase/firestore": "^10.6.4",
    "@react-native-firebase/messaging": "^10.6.4",
    "@react-navigation/bottom-tabs": "^5.11.2",
    "@react-navigation/native": "^5.8.10",
    "@react-navigation/stack": "^5.12.8",
    "@shopify/restyle": "^1.3.1",
    "dayjs": "^1.10.3",
    "react": "16.13.1",
    "react-hook-form": "^6.13.0",
    "react-native": "^0.63",
    "react-native-date-picker": "^3.2.8",
    "react-native-gesture-handler": "^1.9.0",
    "react-native-image-crop-picker": "^0.35.3",
    "react-native-keyboard-aware-scroll-view": "^0.9.3",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-reanimated": "^1.13.2",
    "react-native-redash": "^16.0.8",
    "react-native-safe-area-context": "^3.1.9",
    "react-native-screens": "^2.15.0",
    "react-native-svg": "^12.1.0",
    "react-native-vector-icons": "^7.1.0",
    "undefined": "*",
    "yup": "^0.32.6"
  },
  "devDependencies": {
    "@nrwl/react": "*",
    "@nrwl/react-native": "^10.4.5",
    "@nrwl/workspace": "9.2.3",
    "@types/jest": "^26.0.20",
    "@types/react": "^17.0.0",
    "@types/react-native": "^0.63.45",
    "@types/react-native-vector-icons": "^6.4.6",
    "babel-plugin-module-resolver": "^4.0.0",
    "jetifier": "^1.6.6",
    "typescript": "^4.1.3"
  }

this is my package.json.

[stderr] 500 Internal Server Error - GET http://10.254.24.98:4873/@webassemblyjs%2futf8/-/utf8-1.8.5.tgz

It seems to be a problem with our npm cache, I run few builds with those dependencies, but I wasn’t able to reproduce it, so it seems to be a quite rare issue. Did you get that error more than once?

We disabled cache for ios for now so the issue shouldn’t repeat.

2 Likes

Yes, in total 6 times since sunday afternoon Central European Time. I have started a new run and it seems that the issue is resolved for now. Thanks for the great and quick support!

1 Like