rollbar / rollbar/rollbar-react-native
'sharedApplication' is unavailable: not available on iOS (App Extension)
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 81
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
We've recently updated our One Signal installation which requires nesting the Notification Service Extension target inside the app target within the Podfile. This results in the following build errors from the Rollbar lib:
.../ios/Pods/Rollbar/KSCrash/Source/KSCrash/Reporting/Sinks/KSCrashReportSinkEMail.m:140:41: error build: 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
.../ios/Pods/Rollbar/KSCrash/Source/KSCrash/Reporting/Sinks/KSCrashReportSinkEMail.m:250:31: error build: 'initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:' is unavailable: not available on iOS (App Extension) - Use UIAlertController instead.
After contacting OneSignal, they've suggested that these errors could/should be warnings, and the installation is correct. We can get around the error by adding config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO' to our post-install scripts in the Podfile.
Posting here in case anyone else needs this work-around, or Rollbar wants to consider this update to SDK
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with KSCrash/Source/KSCrash/Reporting/Sinks/KSCrashReportSinkEMail.m in the Rollbar pod and inspect the reported locations around lines 140 and 250. Reproduce the build with the Notification Service Extension nested in the app target, then determine whether the extension build errors can be addressed without breaking the regular app target. Done means the reported extension build errors no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c, react-native
- Domain
- mobile, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100