Commit dabcb3c
fix(ios): Gate Swift link stub inclusion on RN >= 0.75
Adding a Swift file to RNSentry.podspec's source_files (to force Xcode
to link Swift runtime compat libs when consuming Sentry.xcframework)
made CocoaPods treat RNSentry as a 'Swift pod'. On RN < 0.75,
React-hermes doesn't define modular headers, so pod install fails:
The Swift pod `RNSentry` depends upon `React-hermes`, which does
not define modules.
The Swift compat lib linkage is only needed when linking
Sentry.xcframework's static Swift symbols into a dynamic framework
(use_frameworks! :dynamic), which is a RN 0.86+ scenario anyway. Gate
the .swift file on RN >= 0.75 to preserve pod install on the older
matrix cells.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent f78fc85 commit dabcb3c
1 file changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
53 | 66 | | |
54 | 67 | | |
55 | 68 | | |
| |||
0 commit comments