Skip to content

Commit 6e5b1e2

Browse files
authored
RN: Update APPLICATION_EXTENSION_API_ONLY troubleshooting guide (#15144)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* * This is a follow up to getsentry/sentry-react-native#5099 and getsentry/sentry-react-native#5222 adding the suggested solution to the doc * After the removal of the `APPLICATION_EXTENSION_API_ONLY` with getsentry/sentry-cocoa#5524 in [Cocoa 8.53.2](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8532) / [RN 6.18](https://github.com/getsentry/sentry-react-native/blob/main/CHANGELOG.md#6180) the `Unknown receiver` error should not occur (added the version in parentheses for now instead of removing). ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent 2c4f06c commit 6e5b1e2

File tree

1 file changed

+15
-1
lines changed
  • docs/platforms/react-native/troubleshooting

1 file changed

+15
-1
lines changed

docs/platforms/react-native/troubleshooting/index.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,23 @@ The Xcode integration reads `dist` from `CFBundleVersion` but Xcode Cloud builds
133133
export SENTRY_DIST=$CI_BUILD_NUMBER
134134
```
135135

136+
## iOS: Sentry User Feedback UI cannot be used from app extensions.
137+
138+
If you see an error similar to `'SentryUserFeedbackIntegration' is unavailable: not available on iOS - Sentry User Feedback UI cannot be used from app extensions` during the application build process, please make sure that the `APPLICATION_EXTENSION_API_ONLY` is set to `NO`. You can achive that with the following in your `Podfile`.
139+
140+
```ruby {filename:ios/Podfile}
141+
installer.pods_project.targets.each do |target|
142+
target.build_configurations.each do |config|
143+
if target.name == 'Sentry'
144+
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
145+
end
146+
end
147+
end
148+
```
149+
136150
## Unknown receiver '\<SomeReceiver\>', Use of undeclared identifier '\<SomeIdentifier\>'
137151

138-
If you see an error like `Unknown receiver 'SwiftDescriptor'` or `Use of undeclared identifier 'SentryLog'` during the application build process, there's a conflict stemming from `APPLICATION_EXTENSION_API_ONLY`. By default, the Sentry Cocoapod is configured with `APPLICATION_EXTENSION_API_ONLY=YES`, but some `post_install` script likely changed it. To fix this error, add the following to the `Podfile`.
152+
If you see an error like `Unknown receiver 'SwiftDescriptor'` or `Use of undeclared identifier 'SentryLog'` during the application build process (in SDK versions prior to `6.18.0`), there's a conflict stemming from `APPLICATION_EXTENSION_API_ONLY`. By default, the Sentry Cocoapod is configured with `APPLICATION_EXTENSION_API_ONLY=YES`, but some `post_install` script likely changed it. To fix this error, add the following to the `Podfile`.
139153

140154
```ruby {filename:ios/Podfile}
141155
post_install do |installer|

0 commit comments

Comments
 (0)