Closed mustafaefdal1 closed 4 years ago
检查解决方法:https://github.com/react-native-community/react-native-permissions#workaround-for-use_frameworks-issues
I tried the method you guided, but it didn't solve the problem. I use it react-native@0.63.2 I don't know if it has a lot to do with the version or is not compatible with this version
⚠ No permission handler detected.
• Check that you link at least one permission handler in your Podfile.
• Uninstall this app, delete your Xcode DerivedData folder and rebuild it.
• If you use use_frameworks!
, follow the workaround guide in the project README.
-[RNPermissions constantsToExport] RNPermissions.m:195 32-[RCTModuleData gatherConstants]_block_invoke RCTUnsafeExecuteOnMainQueueSync -[RCTModuleData gatherConstants] 49-[RCTCxxBridge _prepareModulesWithDispatchGroup:]_block_invoke _dispatch_call_block_and_release _dispatch_client_callout _dispatch_main_queue_callback_4CF CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE __CFRunLoopRun CFRunLoopRunSpecific GSEventRunModal UIApplicationMain main start 0x0
platform :ios, '9.0'
+ use_frameworks!
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
+ pre_install do |installer|
+ installer.pod_targets.each do |pod|
+ if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')
+ def pod.build_type;
+ Pod::BuildType.static_library # I assume you use CocoaPods >= 1.9
+ end
+ end
+ end
+ end
target 'KimoMobileSecurity' do
# Pods for KimoMobileSecurity
- use_frameworks!
pod 'RNInputMask', :path => '../node_modules/react-native-text-input-mask/ios/InputMask'
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'Permission-Camera', :path => "../node_modules/react-native-permissions/ios/Camera.podspec"
pod 'Permission-LocationAlways', :path => "../node_modules/react-native-permissions/ios/LocationAlways.podspec"
pod 'Permission-LocationWhenInUse', :path => "../node_modules/react-native-permissions/ios/LocationWhenInUse.podspec"
target 'KimoMobileSecurityTests' do
inherit! :search_paths
# Pods for testing
end
use_native_modules!
end
target 'KimoMobileSecurity-tvOS' do
# Pods for KimoMobileSecurity-tvOS
target 'KimoMobileSecurity-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
Bug report
I get this error "No permission handler detected"
I do the installation steps exactly but I can not get any results. I keep getting the same error. First of all, I installed it with npm install. then I added the permissions I wanted on the podfile. I did a pod install. Pod install has done successfully. When I add the use_framework section after the pod install does not work, it gives an error. i clean my project in xcode but nothings changed. #
Environment info
react-native info
output: System: OS: macOS 10.15.6 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 14.34 GB / 32.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.18.3 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.6 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 IDEs: Android Studio: 4.0 AI-193.6911.18.40.6626763 Xcode: 11.7/11E801a - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1this my pod file;
this is my info.plist file:
#