You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked for possible duplicate issues, with possible answers.
Bug summary
We have a single podfile for both iOS and tvOS. If we include permissions for notification on iOS, the RNPermissionHandlerNotifications.h is also included in the tvOS podspec.
Resulting in the following build error:
Library version
4.1.5
Environment info
RN 0.75
Steps to reproduce
See podfile example below.
Can probably also replicate if you call
setup_permissions(['Notifications',])
in a tvos target
Reproducible sample code
target'App'do
platform :ios,"15.5"setup_permissions(['Notifications',])...endtarget'App-tvOS'do
platform :tvos,"15.5"
# thisdoesn't do anything, the above `Notifications` are still loaded
setup_permissions([])
...
end
The text was updated successfully, but these errors were encountered:
# this doesn't do anything, the above `Notifications` are still loaded
setup_permissions([])
That's unfortunately expected given what it does under the hood (it updates the react-native-permissions podspec file).
I think the easiest way to fix this is just to wrap the unavailable APIs with #if TARGET_OS_IOS
Before submitting a new issue
Bug summary
We have a single podfile for both iOS and tvOS. If we include permissions for notification on iOS, the
RNPermissionHandlerNotifications.h
is also included in the tvOS podspec.Resulting in the following build error:
Library version
4.1.5
Environment info
Steps to reproduce
See podfile example below.
Can probably also replicate if you call
in a tvos target
Reproducible sample code
The text was updated successfully, but these errors were encountered: