Skip to content

Commit 4280fa9

Browse files
antonisclaude
andcommitted
revert: Remove redundant OTHER_CFLAGS from pod_target_xcconfig
The compiler flags (SENTRY_PROFILING_SUPPORTED, NEW_HERMES_RUNTIME, etc.) are already applied per-file via s.compiler_flags, which install_modules_dependencies preserves. Adding them to pod_target_xcconfig was redundant. The actual fix for the iOS build was the REACT_NATIVE_NODE_MODULES_DIR env var in the Podfile, which ensures the podspec detects the app's RN version instead of the SDK's devDependency version in the monorepo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f3d0cf2 commit 4280fa9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/RNSentry.podspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Pod::Spec.new do |s|
4848

4949
s.pod_target_xcconfig = {
5050
'DEFINES_MODULE' => 'YES',
51-
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_ROOT}/Sentry/Sources/Sentry" "${PODS_ROOT}/Sentry/Sources/Sentry/include"',
52-
'OTHER_CFLAGS' => other_cflags
51+
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_ROOT}/Sentry/Sources/Sentry" "${PODS_ROOT}/Sentry/Sources/Sentry/include"'
5352
}
5453

5554
s.dependency 'Sentry', '9.8.0'

0 commit comments

Comments
 (0)