Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I got an error while trying to do pod install "[!] FBReactNativeSpec has added 1 script phase."

I got an error while trying to do pod install.

[!] FBReactNativeSpec has added 1 script phase. Please inspect before executing a build. See https://guides.cocoapods.org/syntax/podspec.html#script_phases for more information."

My Configurations are:

  1. macOS BigSur (11.4)
  2. Xcode 12.5.1
  3. Homebrew 3.2.1
  4. react-native 0.64.2
  5. node v14.17.3
  6. npm 6.14.13

Please help me...

like image 368
angular node sample Avatar asked Nov 15 '25 09:11

angular node sample


1 Answers

I suspect this is related to the a dependency error on [email protected]. If you upgrade "react-native-codegen" to version 0.0.7 the error should be fixed. It solved my problem.

Add an exception to your package.json:

For yarn:

"resolutions": {
  "react-native-codegen": "^0.0.7"
},

Run yarn add --dev react-native-codegen and rebuild IOS project.

All info here: https://github.com/facebook/react-native/issues/31180

like image 75
DavidP Avatar answered Nov 18 '25 04:11

DavidP



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!