After installing react-native-firebase/[email protected] with react-native-0.68.1 using use_frameworks! and remove flipperin the podfile of the project , but when i ran npx react-native run-ios it's Build failed
The following build commands failed:
Ld /Users/userName/Library/Developer/Xcode/DerivedData/-gvnovwrlbjvxedcquaumtvgvdgmn/Build/Products/Debug-iphonesimulator/react-native-razorpay/react_native_razorpay.framework/react_native_razorpay normal (in target 'react-native-razorpay' from project 'Pods')
(1 failure) , The Project also contain react-native-razorpay previously added ..now what to do for removing the error and build will succeed with out any crash, Please help i am new to react-native
my podfile looks like ``` #use_modular_headers!
require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '12.0' install! 'cocoapods', :deterministic_uuids => false
target 'DussriShadi' do
config = use_native_modules!
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change false to true and then install pods
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'DussriShadiTests' do inherit! :complete # Pods for
end
#use_flipper!()
post_install do |installer| react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end
This is what worked for me using
"@react-native-firebase/app": "^15.6.0",
"@react-native-firebase/messaging": "^15.6.0",
"react": "18.1.0",
"react-native": "0.70.1"
first add this into podfile:
pod 'Firebase', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
in between
flags = get_default_flags()
and
use_react_native!(
Then delete podfile.lock.
Then do:
cd ios
pod deintegrate
pod cache clean --all
npm cache verify
yarn cache clean
pod install --repo-update
Then clean build folder under XCode -> Product -> Clean Build Folder.
Then run from within XCode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With