expo / sentry-expo

MIT License
202 stars 83 forks source link

Installing sentry-expo creates warning 'Linking requires a build-time setting `scheme` in the project's Expo config' #338

Closed SophieJung7 closed 1 year ago

SophieJung7 commented 1 year ago

Summary

I installed sentry-expo and launched the app and now there is a warning of "Linking requires a build-time setting scheme in the project's Expo config (app.config.js or app.json) for production apps, if it's left blank, your app may crash. The scheme does not apply to development in the Expo client but you should add it as soon as you start working with Linking to avoid creating a broken build. Learn more: https://docs.expo.dev/guides/linking/"

I uninstalled sentry-expo and launched the app and now the warning is gone. Therefore, it is very clear that sentry-expo creates this error. Fyi, I have scheme at app.config.js.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android, iOS

SDK Version (managed workflow only)

No response

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 13.3.1 Shell: 5.9 - /bin/zsh Binaries: Node: 16.16.0 - /usr/local/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 9.4.2 - /usr/local/bin/npm Managers: CocoaPods: 1.12.0 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9619390 Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild npmPackages: expo: ~48.0.6 => 48.0.9 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.71.6 => 0.71.6 react-native-web: ~0.18.10 => 0.18.12 npmGlobalPackages: eas-cli: 3.9.3 expo-cli: 3.27.8 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

Install "sentry-expo": "~6.1.0" and run the app at Expo Go.