I recently updated my Xcode to version 15.3 and encountered an issue while trying to build my React Native app on the simulator. The error message I'm receiving is:

"Called object type 'facebook::flipper::SocketCertificateProvider' is not a function or function pointer."

My react-native version is 0.71.8

Could someone please advise on how to resolve this error and successfully build my React Native app on Xcode 15.3? Any insights or suggestions would be greatly appreciated.

enter image description here

3

There are 3 best solutions below

4
Mohamed Hassan On BEST ANSWER

The solution to this error.....

https://github.com/facebook/react-native/issues/43335#issuecomment-1980285308

update...

1- from project navigator search about ==> FlipperTransportTypes

2- add this import ==> #include "functional"

3- save file and run again

0
MShokry On

If you are using a CI/CD or need a CLI fix

Execute the following command inside your project.

if ! grep -q "#include <functional>" ./ios/Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h; 
then
    chmod 755 ./ios/Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h && sed -i '' 's|#include <string>|#include <functional>\n#include <string>|'  ./ios/Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h
fi

then Clean and rebuild

0
Leandro Ariel On

Add #include functional like the pic below:

enter image description here