lugg / react-native-config

Bring some 12 factor love to your mobile apps!
MIT License
4.81k stars 658 forks source link

cocoapods script phases #514

Open idkjs opened 3 years ago

idkjs commented 3 years ago

Upon installing this package and running npx pod-install I get this message:

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

Does this require us do anything?

Previously, I set the config variables in a file. Are env variables now required?

Thank you.

kockok commented 3 years ago

I got this error after executing pod install and then XCode Build Failed and raising PhaseScriptExecution failed with a nonzero exit code error.

muhammetvrl commented 3 years ago

I get the same problem

syedquadri1982 commented 3 years ago

is this resolved yet?

esteban1213 commented 3 years ago

I will pay to whoever solves [!] 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.

asdasdasd-sys commented 3 years ago

for me i got this warning and all i do is re-run "pod install" in ios folder

esteban1213 commented 3 years ago

I have done all the basic procedures like reinstalling and deleting stuff and running things over and over. you know the usual "might solve it" stuff. I am ready to quit my entire career

asdasdasd-sys commented 3 years ago

i dont know but maybe you need to update ur XCode, i only got this error when i delete pods files and reinstall pods but i run pod install againg and its working now just fine : )

esteban1213 commented 3 years ago

Yeah when I run pod install again, the warning doesn't show anymore, but the build still has this error. Command PhaseScriptExecution failed with a nonzero exit code

MauroAlberto1992 commented 3 years ago

Waiting for the magical fix! Maybe some update burned the xcode

Mehul1437 commented 3 years ago

Any Update ??

longb1997 commented 3 years ago

+1

rcwestlake commented 3 years ago

Any update on this? I'm getting the same error.

brenopgarcia commented 3 years ago

Why God, Why?

codercodingthecode commented 3 years ago

yep, its there. but for me the package causing this, is HEAP, removing that, and I don't see it anymore. Unfortunately, we need that package, so, got find a fix for this. image

Nicat26 commented 3 years ago

Any update?

andrewshortall commented 3 years ago

+1

erazavr commented 3 years ago

has anyone been able to solve this issue?

brenopgarcia commented 3 years ago

I changed the react-native version to "0.63.2" in packages.json file, deleted node-modules folder and ran yarn. And so, run pod install on ios folder. It works for me.

sjain0700 commented 3 years ago

I resolved this issue following these steps.

  1. Updated the xcode 12.5 and uninstall previous xcode vesions(if installed)
  2. update macOS version 11.4
  3. cd ios pod deintegrate cd .. rm -rf ios/Podfile.lock yarn install or npm install yarn audit fix cd ios pod install cd .. react-native run-ios (if Still not run, then open project file .xcworkspace in xcode 12.5 and run)
Yadurshanm commented 3 years ago

This worked for me https://github.com/react-native-community/upgrade-support/issues/138#issuecomment-808895860

The spaces in the folder path was the issue

lazharkarem commented 3 years ago

should Delete alias default : run ( "nvm unalias default" )

han-steve commented 2 years ago

I'm having this issue in EAS build

renan-cardoso commented 1 year ago

I will pay to whoever solves [!] 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.

What worked for me was to run export DISABLE_CODEGEN=1 and then run npx pod install, both on the terminal.

the file /node_modules/react_native/React/FBReactNativeSpec/FBReactNativeSpec.podspec have a function that doesn't add a script_phase to podspec if there is an ENV variable DISABLE_CODEGEN igual to 1.

Kabeer-Haseja commented 5 months ago

+1

Bardashevsky commented 2 months ago

Helped for me: pod deintegrate pod install

After that will be an error : ... has added 2 script phases. Please inspect before executing a build. See https://guides.cocoapods.org/syntax/podspec.html#script_phases for more information.

Then do again with out pod deintegrate: pod install
or bundle exec pod install