Instabug / Instabug-React-Native

In-app feedback and bug reporting tool for React Native
https://instabug.com/platforms/react-native
MIT License
312 stars 100 forks source link

iOS compilation error on Upload Sourcemap using Expo EAS #1313

Open tomhendra opened 2 weeks ago

tomhendra commented 2 weeks ago

Steps to Reproduce the Problem

Run eas build -p ios --local to run a distribution build.

Expected Behavior

iOS compiles using Expo EAS CLI.

Actual Behavior

Unless we remove instabug-reactnative from the dependencies in package.json, the iOS build fails.

Although the issue we are experiencing is in a monorepo, I have created a minimal example repo including the build logs for both repos. If you search for Error: you'll see the error is different between the monorepo and minimal example.

Instabug integration code

See repo permalink (Instabug token removed)

SDK Version

13.4.0

React Native, iOS and Android Versions

React Native: 0.74.5

Device Model

N/A

[Optional] Project That Reproduces the Issue

https://github.com/tomhendra/expo-instabug

krisidmisso commented 4 days ago

same error happens in a bare RN app as well:

Instabug: Started uploading dSYM
Instabug: using ENDPOINT=https://api.instabug.com/api/sdk/v3/symbols_files
Instabug: found APP_TOKEN=<MY_TOKEN>
Instabug: found DSYM_PATH=/Users/username/Library/Developer/Xcode/DerivedData/appName-fqohjasvmucryfbvmumwyyxpjlyp/Build/Intermediates.noindex/ArchiveIntermediates/appNameDev/BuildProductsPath/Release-iphoneos/appNameDev.app.dSYM
error: /Users/username/Library/Developer/Xcode/DerivedData/appName-fqohjasvmucryfbvmumwyyxpjlyp/Build/Intermediates.noindex/ArchiveIntermediates/appNameDev/BuildProductsPath/Release-iphoneos/appNameDev.app.dSYM: No such file or directory
cp: /Users/username/Library/Developer/Xcode/DerivedData/appName-fqohjasvmucryfbvmumwyyxpjlyp/Build/Intermediates.noindex/ArchiveIntermediates/appNameDev/BuildProductsPath/Release-iphoneos/appNameDev.app.dSYM: No such file or directory
Instabug: Cannot find hermes.framework.dSYM
Instabug: found DSYM_PATH=/Users/username/Library/Developer/Xcode/DerivedData/appName-fqohjasvmucryfbvmumwyyxpjlyp/Build/Intermediates.noindex/ArchiveIntermediates/appNameDev/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/Instabug/dSYMs/Instabug.framework.dSYM
Instabug: Error: dSYM not found: /Users/username/Library/Developer/Xcode/DerivedData/appName-fqohjasvmucryfbvmumwyyxpjlyp/Build/Intermediates.noindex/ArchiveIntermediates/appNameDev/BuildProductsPath/Release-iphoneos/appNameDev.app.dSYM

This is the upload script inside xcode:

#- -- SCRIPT BEGIN - --
  SKIP_SIMULATOR_BUILDS=1
  SCRIPT_SRC=$(find "$PROJECT_DIR" -name 'Instabug_dsym_upload.sh' | head -1)
  if [ ! "${SCRIPT_SRC}" ]; then
    echo "Instabug: err: script not found. Make sure that you're including InstabugResources.bundle in your project directory"
    exit 1
  fi
  APP_TOKEN="MY_TOKEN"
  source "${SCRIPT_SRC}"
#- -- SCRIPT END - --

It was working a week ago.

RN: 0.73.8 Instabug-reactnative: 12.9.0 (upgrading to the latest doesnt work as well)

deelo55 commented 2 days ago

It was working a week ago.

@krisidmisso - I'm getting this problem as well. When you say it was working a week ago, what has changed?

deelo55 commented 2 days ago

+1 This is a critical error, I need to remove instabug from my app, in order to build.