-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
Question: Alternative way to resolve Invalid RNPermission X. Should be one of: () #434
Comments
|
If you have issues with other libs, consider reversing the logic of the workaround, it's often easier: $static_frameworks = [
# list your permission handlers here
'Permission-Camera',
'Permission-Notifications'
]
pre_install do |installer|
installer.pod_targets.each do |pod|
if $static_frameworks.include?(pod.name)
puts "Link #{pod.name} as static_library"
def pod.build_type;
# Uncomment one line depending on your CocoaPods version
# Pod::BuildType.static_library # >= 1.9
# Pod::Target::BuildType.static_library # < 1.9
end
end
end
end |
|
Thanks @zoontek. I'd tried the other workaround (step 4). I'll try your above suggestion and see if it works. On a side note, can I continue using v1.2 with react native 0.61 (since it requires a lot of changes in our permissions service)? |
|
I tried the alternative approach you suggested @zoontek but it's throwing some errors which look like:
Here's my podfile just in case: |
|
@divyanshu013 Did you nuke |
|
I ran |
|
I'm not sure |
|
I'll try manually removing the directory and retry a bit later. On a side note, can I continue using v1.2 with react native 0.61 (since it requires a lot of changes in our permissions service)? |
|
You can. But absolutely no support will be provided for it, and you might encounter issues with App store submissions. |
|
> I'll try manually removing the directory and retry a bit later. On a side note, can I continue using v1.2 with react native 0.61 (since it requires a lot of changes in our permissions service)? |
|
I wasn't able to resolve the issue after much trying. For now reverted to older 1.2x release since we were using that earlier and also it requires a lot of changes across our permissions service. I'll come back to this once we've our app working for react native 0.61 |

Question
Hi, I was earlier using v1.x of the library but had to migrate to v2.x recently since I was upgrading to react native 0.61.4
I followed the docs here and rewrote our permissions service for the updated API in v2.x.
After that I added the required permissions handlers from the docs.
Following this I ran into the the error "Invalid RNPermission X. Should be one of: ()", so I tried to resolve it by following the steps mentioned in the docs.
First I tried to use the
use_modular_headersapproach (the app was usinguse_frameworksin earlier react native version - 0.59). But when I tried to build the app from XCode, I ran into aThread 1: signal SIGABRTissue:I tried both approaches from the docs - using modular headers as well as the workaround with use frameworks. But both cause the same error for me.
Its probably some issue with one of my other native dependencies so I was wondering is there an alternative approach I can use to resolve the "Invalid RNPermission X. Should be one of: ()" error? Or perhaps if you would have any suggestion on trying to resolve the above
Thread 1: signal SIGABRTissue.Thanks, I don't have much experience with native code so please let me know if I can provide more info on the issue.
The text was updated successfully, but these errors were encountered: