New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'sharedApplication' is unavailable: not available on iOS (App Extension) #1272
Comments
Its shocking how the answers click into place after posting a issue on Github. I needed to make a change to my post_install section of my apps PodFile
I consider this more of a patch, I don't really know why it works but it does. If there is a better practice someone knows about I'd be keen to know. |
Howdy, Hope this helps. Otherwise, it looks like you fixed it! Enjoy! |
Above solution didn't work for me.
Environment
After applying the above change: Undefined symbol: OBJC_CLASS$_RCTInspectorDevServerHelper |
Same here. Initial problem as described in the issue was fixed by adding Has anyone figured it out? |
Went through this exact same issue and like @indapublic did, I had added the extension to my Podfile incorrectly. Just wanted to add some clarity. This issue arises when you add Service's target inside your app's target. This is wrong:
This is correct: `target 'app' do target 'OneSignalNotificationServiceExtension' do This snippet needs to be its own top-level target and not a sub-target of your app. Once corrected just run pod install again. Sample Pod File `require_relative '../node_modules/react-native/scripts/react_native_pods' platform :ios, '11.0' target 'AppName' do permissions_path = '../node_modules/react-native-permissions/ios' pod 'Permission-Camera', :path => "#{permissions_path}/Camera" config = use_native_modules! pod 'JWPlayer-SDK', '~> 3.16.0' use_react_native!( target 'PlucTvTests' do post_install do |installer| target 'OneSignalNotificationServiceExtension' do |
Additional info in case someone faces, if you're using End of the day it must look like this:
|
I'm having this issue now using
|
Description:
I'm trying to configure OneSignal for iOS however I'm getting an error saying "'sharedApplication' is unavailable: not available on iOS
from file RCTKeyCommands.m
I've followed this guide and double checked everything
https://documentation.onesignal.com/docs/react-native-sdk-setup
https://documentation.onesignal.com/docs/ios-sdk-app-groups-setup
Pod File
Environment
Adding modules via npm install
The text was updated successfully, but these errors were encountered: