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

Error when uploading source maps from EAS build #62

Closed
filipecatraia opened this issue Sep 21, 2022 · 11 comments
Closed

Error when uploading source maps from EAS build #62

filipecatraia opened this issue Sep 21, 2022 · 11 comments

Comments

@filipecatraia
Copy link

filipecatraia commented Sep 21, 2022

Describe the bug

After submitting a built to EAS:

  1. Android built successfully and source maps were uploaded.
  2. iOS failed with the following error:
› Executing Flowchase » Upload source maps to Bugsnag
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	PhaseScriptExecution Upload\ source\ maps\ to\ Bugsnag /Users/expo/Library/Developer/Xcode/DerivedData/Flowchase-dqtytsgkfadtwteridyhlzhrlmyt/Build/Intermediates.noindex/ArchiveIntermediates/Flowchase/IntermediateBuildFilesPath/Flowchase.build/Release-iphoneos/Flowchase.build/Script-026EE93FE26B4D48B5B4D384.sh (in target 'Flowchase' from project 'Flowchase')

To be clear: this causes an iOS build to fail.

Let me know if there's any extra info I can provide, I'd like to help :)

Steps to reproduce

???

Environment

  • Bugsnag version: 46.0.0
  • Expo SDK version (e.g. SDK 44): 46.0.9
  • Device (e.g. iphonex): N/A
  • @bugsnag/plugin-expo-eas-sourcemaps: 46.0.0
Error messages:
› Executing Flowchase » Upload source maps to Bugsnag
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	PhaseScriptExecution Upload\ source\ maps\ to\ Bugsnag /Users/expo/Library/Developer/Xcode/DerivedData/Flowchase-dqtytsgkfadtwteridyhlzhrlmyt/Build/Intermediates.noindex/ArchiveIntermediates/Flowchase/IntermediateBuildFilesPath/Flowchase.build/Release-iphoneos/Flowchase.build/Script-026EE93FE26B4D48B5B4D384.sh (in target 'Flowchase' from project 'Flowchase')
@gingerbenw
Copy link
Member

Hi @filipecatraia! Are you using a monorepo here, or a standalone repo?

@filipecatraia
Copy link
Author

@gingerbenw Standalone! I saw the other issue about monorepos :) I ended up removing sourcemaps, otherwise I couldn't build on iOS.

@renatoniro
Copy link

👋 Hey there! - commenting to follow along with this thread as I also seem to be seeing the same behaviour with iOS builds failing in EAS at the final step where bugsnag sourcemaps are uploaded (PhaseScriptExecution fails), thus holding up app-store releases. My project is also not a monorepo.

Environment

Bugsnag version: 45.0.0
Expo SDK version (e.g. SDK 44): 45.0.0
@bugsnag/plugin-expo-eas-sourcemaps: 45.1.0 (I have also tried with the latest 46.0.1)

@nickdowell
Copy link
Contributor

We have not (yet) been able to reproduce this build issue.

If you're willing and able to reproduce it in a local build we will hopefully be able to get more logs and determine the cause. The following commands replicate EAS's build process locally:

export EAS_LOCAL_BUILD_ARTIFACTS_DIR=/tmp/eas-build
export EAS_LOCAL_BUILD_SKIP_CLEANUP=1
eas build --platform ios --local

Opening the Xcode project left in $EAS_LOCAL_BUILD_ARTIFACTS_DIR and building it directly in Xcode should provide the more verbose logs that we need. Thanks!

@filipecatraia
Copy link
Author

Sadly, the last time I tried to build locally, I ended up in a 4-day quest down the rabbit hole onto the land of madness. If we knew the build IDs, is there any chance you can convince Expo to give us better logs and/or a copy of the build artifacts?

@gingerbenw
Copy link
Member

Hi @filipecatraia, you should be able to download the full Xcode logs by expanding the > Xcode logs build stage and hitting "Download".

If you could write to us at support@bugsnag.com with your build ID, we can pass that over to the Expo team for further investigation.

@filipecatraia
Copy link
Author

Hey @gingerbenw, these had the issue we're describing here:

  • e7d27602-7515-4ea4-af5c-2f7256e535dd
  • 47af6b96-f5da-4cda-95b3-584e1eb31be7

Good luck with Expo!

@johnkiely1
Copy link
Member

johnkiely1 commented Jan 17, 2023

Apologies for the delays on this, we did manage to get the following from expo


Error: SOURCE_MAP /var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T//bb15bffadd4744905fca39ed5195ffdb-main.jsbundle.map could not be found.
Ensure the --sourcemap-output option is passed to the react-native bundle command.
Command PhaseScriptExecution failed with a nonzero exit code

Unfortunately it's difficult for us to tell or investigate exactly why this file wouldn't be found other than suggesting that sourcemap wasn’t being generated or wasn’t in the correct location. We have tried to reproduce what you are seeing but we have not been able to. Have you managed to get any further or are you still seeing the same issue?

@johnkiely1 johnkiely1 added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jan 17, 2023
@johnkiely1
Copy link
Member

Going to close this out at there is not a lot more we can do at this point, happy to reopen if you have any additional information you can share.

@johnkiely1 johnkiely1 removed the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Feb 17, 2023
@joaquin03
Copy link

Is there any news on this? I'm having the same issue.

@clr182 clr182 reopened this Dec 7, 2023
@clr182
Copy link

clr182 commented Dec 7, 2023

Hi @joaquin03
Unfortunately we do not have an update on this issue. However, as per the above suggestions if you are able to reproduce this issue in a local build then we should be able to get more logs and determine the cause.

@clr182 clr182 added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Dec 7, 2023
@mclack mclack closed this as completed Feb 23, 2024
@mclack mclack removed the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Feb 23, 2024
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

8 participants