Closed mrezzaaa closed 1 year ago
This looks like something corrupt in your local environment, you might try npx react-native-clean-project
and clear out all Pod-related cache items then retry
i'd starting new project (assumed clean environment) also failed too
Right, my comment is still valid. Pod cache is at system level, if your pod cache has partial downloads / is corrupted it will fail in any project.
You may also have some toolchain issue where for instance the tools first in PATH and used by that script (base64, find, xargs, sed etc) are not the standard ones for whatever reason.
This release has been out for around a month (check commit time): https://github.com/CocoaPods/Specs/blob/master/Specs/f/8/8/BoringSSL-GRPC/0.0.24/BoringSSL-GRPC.podspec.json
...and is in use here since that time with successful test runs:
Overwhelmingly likely conclusion: Something is wrong on your local system
Which better install Cocoapods using gem or homebrew ? i want to try reinstalling cocoapods
I can't answer that question for you, it depend on your personal needs
With apologies, I'm going to close this issue as non-reproducible as we've been on the version for a while (both on my development workstations and in CI) and it's working here
If there's a reproducible example in the future we can reopen https://stackoverflow.com/help/minimal-reproducible-example but this doesn't seem actionable here in the repository
Tried to reinstalling ruby 2.7.6, Cocoapods 1.12.0, clearing PATH in .zshrc still got same error.
Downgrading to firebase 13.1.0 (BoringSSL-GRPC version 0.0.7) is success. but got another issue
Socket SO_ERROR [61: Connection refused]
nw_connection_get_connected_socket [C9] Client called nw_connection_get_connected_socket on unconnected nw_connection
TCP Conn 0x28093eec0 Failed : error 0:61 [61]
Or i need list of libraries that required to run pod installation . (e.g : ffi, base64,etc) Please help me
nevermind. downgraded to :
"@react-native-firebase/app": "^13.1.0",
"@react-native-firebase/auth": "^13.1.0",
"@react-native-firebase/database": "^13.1.0",
"@react-native-firebase/firestore": "^13.1.0",
working smoothly
Issue
Describe your issue here
pod installation fail when installing BoringSSL-GRPC 0.0.24 that interrupt pod installation process
error message: Failure when installing pod with react native. This is the error message:
Project Files
Javascript
Click To Expand
#### `package.json`: ``` { "name": "myapp", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@eva-design/eva": "^2.1.1", "@react-native-async-storage/async-storage": "^1.15.14", "@react-native-firebase/app": "^17.3.1", "@react-native-firebase/auth": "^17.3.1", "@react-native-firebase/database": "^17.3.1", "@react-native-firebase/firestore": "^17.3.1", "@react-navigation/bottom-tabs": "^6.0.9", "@react-navigation/native": "^6.0.6", "@react-navigation/native-stack": "^6.2.5", "@react-navigation/stack": "^6.0.11", "@ui-kitten/components": "^5.1.1", "@ui-kitten/eva-icons": "^5.1.1", "convert-string": "^0.1.0", "md5": "^2.3.0", "moment": "^2.29.1", "native-base": "^3.4.18", "react": "18.2.0", "react-native": "0.71.3", "react-native-background-actions": "^2.6.5", "react-native-ble-manager": "^8.0.2", "react-native-chart-kit": "^6.11.0", "react-native-circular-slider": "^1.0.1", "react-native-date-picker": "^4.2.5", "react-native-dialog": "^9.2.1", "react-native-elements": "^3.4.2", "react-native-gesture-handler": "^2.1.0", "react-native-safe-area-context": "3.3.2", "react-native-screens": "^3.10.1", "react-native-svg": "12.1.1", "react-native-svg-charts": "^5.4.0", "react-native-vector-icons": "^9.0.0", "rn-sliding-up-panel": "^2.4.5" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.6.3", "eslint": "^7.32.0", "jest": "^26.6.3", "metro-react-native-babel-preset": "0.72.3", "react-test-renderer": "18.1.0" }, "jest": { "preset": "react-native" } } ``` #### `firebase.json` for react-native-firebase v6: ```json # N/A ```
iOS
Click To Expand
#### `ios/Podfile`: - [x] I'm using Pods and my Podfile looks like: ``` require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' target 'myApp' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! :linkage => :static $RNFirebaseAsStaticFramework = true config = use_react_native! flags = get_default_flags() use_react_native!( :path => "../node_modules/react-native", :hermes_enabled => true, :fabric_enabled => flags[:fabric_enabled], :flipper_configuration => FlipperConfiguration.disabled, :app_path => "#{Pod::Config.instance.installation_root}/.." ) pod 'FirebaseAuth' pod 'FirebaseFirestore' pod 'FirebaseDatabase' pod 'FirebaseMessaging' # Pods for myApp target 'myApp' do inherit! :search_paths # Pods for testing end end ``` #### `AppDelegate.mm`: ``` #import "AppDelegate.h" #import
#import
#import
#import
#import
#if RCT_NEW_ARCH_ENABLED
#import
#import
#import
#import
#import
#import
#import
static NSString *const kRNConcurrentRoot = @"concurrentRoot";
@interface AppDelegate () {
RCTTurboModuleManager *_turboModuleManager;
RCTSurfacePresenterBridgeAdapter *_bridgeAdapter;
std::shared_ptr _reactNativeConfig;
facebook::react::ContextContainer::Shared _contextContainer;
}
@end
#endif
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
RCTAppSetupPrepareApp(application);
[FIRApp configure];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
#if RCT_NEW_ARCH_ENABLED
_contextContainer = std::make_shared();
_reactNativeConfig = std::make_shared();
_contextContainer->insert("ReactNativeConfig", _reactNativeConfig);
_bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer];
bridge.surfacePresenter = _bridgeAdapter.surfacePresenter;
#endif
NSDictionary *initProps = [self prepareInitialProps];
UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"myapp", initProps);
if (@available(iOS 13.0, *)) {
rootView.backgroundColor = [UIColor systemBackgroundColor];
} else {
rootView.backgroundColor = [UIColor whiteColor];
}
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
return YES;
}
/// This method controls whether the `concurrentRoot`feature of React18 is turned on or off.
///
/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
/// @return: `true` if the `concurrentRoot` feture is enabled. Otherwise, it returns `false`.
- (BOOL)concurrentRootEnabled
{
// Switch this bool to turn on and off the concurrent root
return true;
}
- (NSDictionary *)prepareInitialProps
{
NSMutableDictionary *initProps = [NSMutableDictionary new];
#ifdef RCT_NEW_ARCH_ENABLED
initProps[kRNConcurrentRoot] = @([self concurrentRootEnabled]);
#endif
return initProps;
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
#if RCT_NEW_ARCH_ENABLED
#pragma mark - RCTCxxBridgeDelegate
- (std::unique_ptr)jsExecutorFactoryForBridge:(RCTBridge *)bridge
{
_turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge
delegate:self
jsInvoker:bridge.jsCallInvoker];
return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager);
}
#pragma mark RCTTurboModuleManagerDelegate
- (Class)getModuleClassFromName:(const char *)name
{
return RCTCoreModulesClassProvider(name);
}
- (std::shared_ptr)getTurboModule:(const std::string &)name
jsInvoker:(std::shared_ptr)jsInvoker
{
return nullptr;
}
- (std::shared_ptr)getTurboModule:(const std::string &)name
initParams:
(const facebook::react::ObjCTurboModule::InitParams &)params
{
return nullptr;
}
- (id)getModuleInstanceFromClass:(Class)moduleClass
{
return RCTAppSetupDefaultModuleFromClass(moduleClass);
}
#endif
@end
```
Android
Environment
Click To Expand
**`react-native info` output:** ``` System: OS: macOS 13.2.1 CPU: (8) arm64 Apple M1 Pro Memory: 593.20 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.13.2 - /usr/local/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.19.2 - /usr/local/bin/npm Watchman: 2023.01.16.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: Not Found SDKs: iOS SDK: Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 14.1/14B47b - /usr/bin/xcodebuild Languages: Java: 19.0.1 - /opt/homebrew/opt/openjdk/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.3 => 0.71.3 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found ``` **Cocoapods 1.11.3** **ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22]** - **Platform that you're experiencing the issue on**: - [ X] iOS - [ ] Android - [ X] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `17.3.1` - **`Firebase` module(s) you're using that has the issue:** - `e.g. Instance ID` - **Are you using `TypeScript`?** - `N`
React Native Firebase
andInvertase
on Twitter for updates on the library.