Commit 18bf4b4
fix(ios): support use_frameworks! consumers via conditional Swift bridge import
CocoaPods exposes the generated `RNMotionTag-Swift.h` differently depending
on host linkage. In default static-library mode (Expo, vanilla RN) it stays
in DerivedSources and is only reachable as `"RNMotionTag-Swift.h"`. With
`use_frameworks!` (commonly required by Firebase, MapBox, Sentry, and other
Swift-only iOS SDKs) it lands inside the framework's Headers and is reachable
as `<RNMotionTag/RNMotionTag-Swift.h>`. The previous quoted-only form
produced `fatal error: 'RNMotionTag-Swift.h' file not found` for any
`use_frameworks!` consumer. Using `__has_include` selects the right form at
compile time so both linkage modes build with no host-side workaround.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2f359f4 commit 18bf4b4
3 files changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
0 commit comments