Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions samples/react-native-macos/macos/Podfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
require_relative '../node_modules/react-native-macos/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

ENV['REACT_NATIVE_NODE_MODULES_DIR'] ||= File.expand_path('../node_modules/react-native-macos', __dir__)

prepare_react_native_project!

target 'sentry-react-native-sample-macOS' do
platform :macos, '12.0'
platform :macos, '14.0'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Podfile macOS version mismatches Xcode

Medium Severity

The Podfile sets the CocoaPods platform to macOS 14.0 for react-native-macos 0.81, but the Xcode app target still uses MACOSX_DEPLOYMENT_TARGET 10.15. The bundle can advertise a lower minimum OS than the linked native stack expects, which risks link warnings or crashes on older macOS versions.

Fix in Cursorย Fix in Web

Reviewed by Cursor Bugbot for commit 01c092e. Configure here.

use_native_modules!

# Flags change depending on the env values.
Expand All @@ -14,8 +15,6 @@ target 'sentry-react-native-sample-macOS' do
:path => '../node_modules/react-native-macos',
:hermes_enabled => false,
:fabric_enabled => ENV['RCT_NEW_ARCH_ENABLED'] == '1',
# Flipper is not compatible w/ macOS
:flipper_configuration => FlipperConfiguration.disabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
Expand Down
23 changes: 13 additions & 10 deletions samples/react-native-macos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,29 @@
"@sentry/react": "10.59.0",
"@sentry/react-native": "8.15.1",
"delay": "^6.0.0",
"react": "18.2.0",
"react-native": "0.73.9",
"react": "19.1.4",
"react-native": "0.81.6",
Comment thread
antonis marked this conversation as resolved.
"react-native-gesture-handler": "2.14.0",
"react-native-macos": "0.73.34",
"react-native-reanimated": "3.8.1",
"react-native-macos": "0.81.7",
"react-native-reanimated": "3.19.5",
Comment thread
cursor[bot] marked this conversation as resolved.
"react-native-safe-area-context": "4.8.0",
Comment thread
sentry[bot] marked this conversation as resolved.
"react-native-screens": "3.29.0",
Comment thread
sentry[bot] marked this conversation as resolved.
"react-native-svg": "^15.3.0",
"react-native-vector-icons": "^10.0.3",
"react-redux": "^8.1.3",
"redux": "^4.2.1"
"react-redux": "^9.2.0",
"redux": "^5.0.1"
},
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/runtime": "^7.22.5",
"@react-native/babel-preset": "0.73.21",
"@react-native/metro-config": "0.73.5",
"@react-native/typescript-config": "0.73.1",
"@types/react": "^18.2.65",
"@react-native-community/cli": "20.1.3",
"@react-native-community/cli-platform-android": "20.1.3",
"@react-native-community/cli-platform-ios": "20.1.3",
"@react-native/babel-preset": "0.81.6",
"@react-native/metro-config": "0.81.6",
"@react-native/typescript-config": "0.81.6",
"@types/react": "^19.1.4",
"@types/react-native-vector-icons": "^6.4.18",
"babel-plugin-module-resolver": "^5.0.0",
"jest": "^29.6.3",
Expand Down
Loading
Loading