Commit fc4682e
committed
build: move SentryObjCBridge to Sentry target
Move SentryObjCBridge.swift from SentryObjC target to Sentry target
to avoid module conflicts. When Swift code was in SentryObjC, it
could see both the SentryObjC module and Sentry module definitions
of the same types (SentryUser, SentryOptions, etc.), causing
compilation errors.
Architecture is now:
- Sentry.framework: SDK + SentrySDKInternal + SentryObjCBridge
- SentryObjC.framework: pure ObjC with forward declarations
At link time, SentryObjC calls resolve to implementations in Sentry.
Also:
- Fix bridge imports (can't import Sentry when inside Sentry module)
- Add SentryObjC.xcframework to gitignore
- Update Ruby script to not include bridge in SentryObjC target1 parent d44c00f commit fc4682e
4 files changed
Lines changed: 216 additions & 1193 deletions
File tree
- Sentry.xcodeproj
- Sources/SentryObjCBridge
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
0 commit comments