Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FlipperKit 'facebook::flipper::SocketCertificateProvider' (aka 'int') is not a function or function pointer template named 'function' in namespace std

Called object type 'facebook::flipper::SocketEventHandler' (aka 'int') is not a function or function pointer /Users/apple/Desktop/vipul/app/onPurpose/ios/Pods/Headers/Private/Flipper/FlipperTransportTypes.h:29:14 No template named 'function' in namespace 'std'

getting error for FlipperKit

When create a build getting error how to resolve this error

like image 812
Vipul Anand Avatar asked Jul 16 '26 23:07

Vipul Anand


2 Answers

I was able to find temp fix with adding

#include <functional>
to
ios/Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h
may be an flipper needs an upgrade

Edit: can confirm flipper repo has this patch facebook/flipper@b3dcdb8 If you want change in pod file so use

like image 189
Vipul Anand Avatar answered Jul 18 '26 11:07

Vipul Anand


  • Modify FlipperTransportTypes.h and add bellow code to line 9

    #include <functional>
    

enter image description here

  • If you still want to use flipper, then modify your Podfile & add this to your post_install.

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        if target.name == 'Flipper'
          file_path = 
    'Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h'
          contents = File.read(file_path)
          unless contents.include?('#include <functional>')
            File.open(file_path, 'w') do |file|
              file.puts('#include <functional>')
              file.puts(contents)
            end
          end
        end
      end
    end
    
like image 35
Pratik Prakash Bindage Avatar answered Jul 18 '26 13:07

Pratik Prakash Bindage



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!