Closed nandorojo closed 2 years ago
@nandorojo I've experienced the same issue using sentry-expo
and building via EAS for iOS. It looks like the issue stems from @sentry/cli
not being able to resolve certain paths in a monorepo setup when building for iOS. Supposedly there was a similar problem on Android, but it got fixed already. See this issue.
Anyway, in the meantime, I fixed it by creating symlinks for certain Sentry and RN-related packages from the app's node_modules folder to the root node_modules folder and in a postinstall
script :arrow_down: . The logic and packages linked are inspired by the original expo-yarn-workspaces
package.
Hello, I had the same issue.
It looks like it's (in your case) the Upload\ Debug\ Symbols\ to\ Sentry /Users/account/Library/Developer/Xcode/DerivedData/myappDev-fdeajtvriphfoqebckrqlimwjwzw/Build/Intermediates.noindex/myappDev.build/Debug-iphonesimulator/myappDev.build/Script-0C4E603DB83B4ECE9956F47A.sh
file that cause the error.
If you try to manually run the script, an error message told you to add a --org
flag.
To solve the problem, I exported SENTRY_PROJECT
and SENTRY_ORG
as env variable.
export SENTRY_PROJECT='<project_name>'
export SENTRY_ORG='<organisation_name>'
Then, in my case, the --local
build works fine.
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.
Summary
When upgrading from Expo SDK 42 to 44,
sentry-expo
didn't seen to upgrade from4.0.1
. As a result, I got a really long error message fromexpo run:ios
, which I'll copy below. It was hard to narrow down the error to sentry, since it all just gets dumped to the terminal in red text. I found sentry as the issue by building from XCode.I then tried
expo install sentry-expo
, and it still installed an old version. I had to useyarn add
instead.^ this is wrong, since
4.1.0
is out.This is the relevant error from
expo run:ios
:View full error message
The error was too long for GitHub issues, so I trimmed it down. ```sh 2022-03-22 14:32:35.130 xcodebuild[64066:344956] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore 2022-03-22 14:32:35.130 xcodebuild[64066:344956] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore ** BUILD FAILED ** The following build commands failed: PhaseScriptExecution Upload\ Debug\ Symbols\ to\ Sentry /Users/account/Library/Developer/Xcode/DerivedData/myappDev-fdeajtvriphfoqebckrqlimwjwzw/Build/Intermediates.noindex/myappDev.build/Debug-iphonesimulator/myappDev.build/Script-0C4E603DB83B4ECE9956F47A.sh (in target 'myappDev' from project 'myappDev') (1 failure) Build logs written to /Users/account/Developer/app-folder/applications/expo-app/.expo/xcodebuild.log line 3: ../node_modules/@sentry/cli/bin/sentry-cli: No such file or directory Command PhaseScriptExecution failed with a nonzero exit code ```Now that I got the right version installed, I still get the error above. The solution was to add a patch to the config plugin (which I'll put at the bottom of this issue).
Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!bare
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
44
Environment
Reproducible demo or steps to reproduce from a blank project
I haven't made a repro yet, but I can try to. There are 2 issues at hand here:
expo install sentry-expo
/expo upgrade
installs an old version. I had to useyarn add sentry-expo <peer deps here>
@sentry/cli
isn't properly resolved fromexpo run:ios
. To get around this, I removed this code from the config plugin with the following patch:Removing that code may not be the right thing to do, but it was necessary to get the app to build. I'll try to make a repro with a solito monorepo when I have time soon. Let me know if that's necessary, or if you have enough info here. Thanks!