Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS compilation error on Upload Sourcemap using Expo EAS #1313

Open
tomhendra opened this issue Nov 12, 2024 · 13 comments
Open

iOS compilation error on Upload Sourcemap using Expo EAS #1313

tomhendra opened this issue Nov 12, 2024 · 13 comments

Comments

@tomhendra
Copy link

tomhendra commented Nov 12, 2024

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
Copy link

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
Copy link

deelo55 commented Nov 24, 2024

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
Copy link

deelo55 commented Nov 24, 2024

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

@krisidmisso
Copy link

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?

I didnt change anything. I even forced using the same version I used when first installed the library. For me the issue was only on the upload script of the DSYM file. It seems the library cannot find the file, or doesnt generate it. Just disabling this script in XCode resolved my issue

@deelo55
Copy link

deelo55 commented Nov 27, 2024 via email

@krisidmisso
Copy link

How do you disable the script? Is anyone from Instabug looking into this issue?

On Wed, 27 Nov 2024 at 04:27, Krisid Misso @.> wrote: It was working a week ago. @krisidmisso https://github.com/krisidmisso - I'm getting this problem as well. When you say it was working a week ago, what has changed? I didnt change anything. I even forced using the same version I used when first installed the library. For me the issue was only on the upload script of the DSYM file. It seems the library cannot find the file, or doesnt generate it. Just disabling this script in XCode resolved my issue — Reply to this email directly, view it on GitHub <#1313 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHBSTTQPUOQDQRK6YJERUT2CVC4NAVCNFSM6AAAAABRTRVE3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBSG4ZDKOJZGU . You are receiving this because you commented.Message ID: @.>

Either comment or delete this script:
XCode -> Click project name on the left side -> Select the target -> Build Phases -> Upload Debug Symbols to Instabug
image

I have reported this issue to Instabug team from my dashboard

@krisidmisso
Copy link

Additional notes: The app runs in debug mode. The error happens only in release mode

@ahmedAlaaInstabug
Copy link
Contributor

Hi @krisidmisso , Thanks for reporting this issue. to solve this issue you need to

  1. run npx expo prebuild
  2. install this snapshot
You can install the snapshot through NPM:

npm install [email protected]

or Yarn:

yarn add [email protected]
  1. add instabug expo plugin in app.json
"plugins": [
  "instabug-reactnative",
  1. cd ios and run pod install

  2. re-run npx expo prebuild

@krisidmisso
Copy link

npm install [email protected]

@ahmedAlaaInstabug is this relevant for bare RN projects as well?

@lucasroca
Copy link

Hi @ahmedAlaaInstabug. Thanks for the help! I was having the same issue on a bare RN project. Using that specific snapshot solves the issue for iOS sourcemaps, but it's still failing on Android for me

Failed to upload source map file.
Reason: Unable to find App Token! Set the environment variable `INSTABUG_APP_TOKEN` and try again.

I've set the Instabug token, and it was working previously

Copy link

stale bot commented Dec 13, 2024

This issue has been automatically marked as pending feedback because we need additional information to be able to investigate it further. It will be closed in 7 days if it remains inactive. Thank you for your contributions.

@lucasroca
Copy link

Not stale

@stale stale bot removed the Pending Feedback label Dec 18, 2024
@krisidmisso
Copy link

any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants