DataDog / expo-datadog

Datadog SDK for Expo
Apache License 2.0
8 stars 5 forks source link

iOS EAS Builds Failing #43

Open gesturetaj opened 1 month ago

gesturetaj commented 1 month ago

Describe what happened When trying to build iOS builds and upload source maps to datadog the build is failing with the following error:

Error: ENOENT: no such file or directory, open '/Users/expo/Library/Developer/Xcode/DerivedData/Gesture-ghljcuewhjibzvbuvxyeprffhxiu/Build/Intermediates.noindex/ArchiveIntermediates/Gesture/BuildProductsPath/Release-iphoneos/main.jsbundle.map'
    at Object.openSync (node:fs:603:3)
    at Object.readFileSync (node:fs:471:35)
    at Object.<anonymous> (/Users/expo/workingdir/build/node_modules/react-native/scripts/compose-source-maps.js:34:8)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
    at node:internal/main/run_main_module:23:47 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/Users/expo/Library/Developer/Xcode/DerivedData/Gesture-ghljcuewhjibzvbuvxyeprffhxiu/Build/Intermediates.noindex/ArchiveIntermediates/Gesture/BuildProductsPath/Release-iphoneos/main.jsbundle.map'
}

Node.js v18.18.0
Error running bundle script from datadog-ci xcode.
Error: error null while running datadog-ci xcode.Command PhaseScriptExecution failed with a nonzero exit code

Steps to reproduce the issue:

Describe what you expected: Build should succeed and source maps upload to Datadog

Additional context

marco-saia-datadog commented 1 month ago

Hello @gesturetaj, thank you for reaching out!

We will look into this soon, I suspect it might be a compatibility problem with RN 0.74.3.

Could you elaborate on your current setup? Is the error coming from a CI or from your local environment? Are you working with a monorepo?

gesturetaj commented 1 month ago

Hi @marco-saia-datadog, Thanks for getting back to me. This error is coming from CI (EAS) and no we are not working in a monorepo.