Skip to content

Commit eb2b69a

Browse files
docs(apple): Add troubleshooting issue in 8.54.0 (#14523)
Addresses sentry-cocoa issue getsentry/sentry-cocoa#5769 where users report that SentrySDK API members like 'capture' are not available after updating to version 8.54.0. Provides step-by-step resolution instructions including cleaning build folder, removing derived data, resetting package cache, and restarting Xcode.
1 parent 4cece68 commit eb2b69a

File tree

1 file changed

+17
-0
lines changed
  • docs/platforms/apple/common/troubleshooting

1 file changed

+17
-0
lines changed

docs/platforms/apple/common/troubleshooting/index.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,20 @@ You can fix this by not subclassing the affected classes. Strictly speaking, thi
209209
Cocoa SDK versions [8.51.1](https://github.com/getsentry/sentry-cocoa/releases/tag/8.51.1) and [8.52.0](https://github.com/getsentry/sentry-cocoa/releases/tag/8.52.0) have a bug that causes unsymbolicated stacktraces for non-fatal events, such as`captureError`, `captureMessage` or `captureException`. All or most stacktrace frames are then marked as `redacted` by Sentry. This bug doesn't impact fatal events or crashes.
210210

211211
Please update the Cocoa SDK to version [8.52.1](https://github.com/getsentry/sentry-cocoa/releases/tag/8.52.1) or above or stay on version [8.51.0](https://github.com/getsentry/sentry-cocoa/releases/tag/8.51.0) or below to fix this problem.
212+
213+
## SentrySDK API members not available after updating to 8.54.0
214+
215+
After updating to Cocoa SDK version [8.54.0](https://github.com/getsentry/sentry-cocoa/releases/tag/8.54.0), you might encounter build errors indicating that `SentrySDK` has no member `capture` or other API methods that were previously available, such as:
216+
217+
```
218+
'SentrySDK' has no member 'capture'
219+
```
220+
221+
To resolve this problem try the following:
222+
223+
1. Clean your build by going to **Product > Clean Build Folder** in Xcode
224+
2. Close all Xcode projects and close Xcode
225+
3. Remove derived data by going to **Xcode > Settings > Locations > Derived Data** and clicking the arrow next to the path, then delete the folder for your project or, **please be careful with the following command and double check the path**, run `rm -rf ~/Library/Developer/Xcode/DerivedData`
226+
4. Restart Xcode
227+
5. Reset your package cache if using Swift Package Manager by going to **File > Packages > Reset Package Caches**
228+
6. Rebuild your project

0 commit comments

Comments
 (0)