You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently building up my macOS project and I want to implement an auth mechanism with Firebase auth. I installed this library with yarn and it succeeds but when installing the pods I got this error:
[!] The platform of the target 'RNMacOS5-macOS' (macOS 10.14) is not compatible with 'RNFBAuth (8.2.0)', which does not support 'macOS'.
I've looked into the issues and Google and I guess this library supports macOS and even people face a different problem(s) than mine. I've looked into the issues and Google and I guess this library supports macOS and even people face a different problem(s) than mine. Which means they installed the library successfully, IMO but I can't even install the library.
INFO: this pod file is belongs to macOS project. Not iOS
ios/Podfile:
I'm not using Pods
I'm using Pods and my Podfile looks like:
require_relative'../node_modules/@react-native-community/cli-platform-ios/native_modules'abstract_target'Shared'do# Pods for RNMacOS5pod'JSONModel'pod'FBLazyVector',:path=>'../node_modules/react-native-macos/Libraries/FBLazyVector'pod'FBReactNativeSpec',:path=>'../node_modules/react-native-macos/Libraries/FBReactNativeSpec'pod'RCTRequired',:path=>'../node_modules/react-native-macos/Libraries/RCTRequired'pod'RCTTypeSafety',:path=>'../node_modules/react-native-macos/Libraries/TypeSafety'pod'React',:path=>'../node_modules/react-native-macos/'pod'React-Core',:path=>'../node_modules/react-native-macos/'pod'React-CoreModules',:path=>'../node_modules/react-native-macos/React/CoreModules'pod'React-Core/DevSupport',:path=>'../node_modules/react-native-macos/'pod'React-RCTActionSheet',:path=>'../node_modules/react-native-macos/Libraries/ActionSheetIOS'pod'React-RCTAnimation',:path=>'../node_modules/react-native-macos/Libraries/NativeAnimation'pod'React-RCTBlob',:path=>'../node_modules/react-native-macos/Libraries/Blob'pod'React-RCTImage',:path=>'../node_modules/react-native-macos/Libraries/Image'pod'React-RCTLinking',:path=>'../node_modules/react-native-macos/Libraries/LinkingIOS'pod'React-RCTNetwork',:path=>'../node_modules/react-native-macos/Libraries/Network'pod'React-RCTSettings',:path=>'../node_modules/react-native-macos/Libraries/Settings'pod'React-RCTText',:path=>'../node_modules/react-native-macos/Libraries/Text'pod'React-RCTVibration',:path=>'../node_modules/react-native-macos/Libraries/Vibration'pod'React-Core/RCTWebSocket',:path=>'../node_modules/react-native-macos/'pod'React-cxxreact',:path=>'../node_modules/react-native-macos/ReactCommon/cxxreact'pod'React-jsi',:path=>'../node_modules/react-native-macos/ReactCommon/jsi'pod'React-jsiexecutor',:path=>'../node_modules/react-native-macos/ReactCommon/jsiexecutor'pod'React-jsinspector',:path=>'../node_modules/react-native-macos/ReactCommon/jsinspector'pod'ReactCommon/jscallinvoker',:path=>'../node_modules/react-native-macos/ReactCommon'pod'ReactCommon/turbomodule/core',:path=>'../node_modules/react-native-macos/ReactCommon'pod'Yoga',:path=>'../node_modules/react-native-macos/ReactCommon/yoga'pod'boost-for-react-native',:podspec=>'../node_modules/react-native-macos/third-party-podspecs/boost-for-react-native.podspec'pod'DoubleConversion',:podspec=>'../node_modules/react-native-macos/third-party-podspecs/DoubleConversion.podspec'pod'glog',:podspec=>'../node_modules/react-native-macos/third-party-podspecs/glog.podspec'pod'Folly',:podspec=>'../node_modules/react-native-macos/third-party-podspecs/Folly.podspec'target'RNMacOS5-macOS'doplatform:macos,'10.14'use_native_modules!# Pods specifically for macOS targetendtarget'RNMacOS5-iOS'doplatform:ios,'9'use_native_modules!# Pods specifically for iOS targetendend
AppDelegate.m:
#import"AppDelegate.h"
#import<React/RCTBridge.h>
#import<React/RCTBundleURLProvider.h>
#import"RNMacOS5-macOS-Bridging-Header.h"
#import"ProcessorFactory.h"
#import<AudioKit/AudioKit.h>@interfaceAppDelegate () <RCTBridgeDelegate> {
}
@end@implementationAppDelegate
- (void)awakeFromNib {
[superawakeFromNib];
_bridge = [[RCTBridge alloc] initWithDelegate:selflaunchOptions:nil];
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
[ProcessorFactory initInstances];
}
- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Insert code here to tear down your application
}
#pragma mark - RCTBridgeDelegate Methods
- (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge {
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"fallbackResource:@"main"]; // .jsbundle;
}
@end
Android
Click To Expand
Have you converted to AndroidX?
my application is an AndroidX application?
I am using android/gradle.settingsjetifier=true for Android compatibility?
I am using the NPM package jetifier for react-native compatibility?
It is perhaps worth paying attention to the underlying SDKs which do (through community effort) support at least a subset of modules now for macOS, tvOS, watchOS etc, and there is some #2698#3840 work that makes it work
But this will have to be community effort. If you're not the sort of person that can say "oh, it's failing on macOS because of this" and propose a PR to fix it, you will likely not get things solved as it's not a platform used by current maintainers and thus would need someone to maintain it
Issue
Compatibility problem when installing pods.
I'm currently building up my macOS project and I want to implement an auth mechanism with Firebase auth. I installed this library with yarn and it succeeds but when installing the pods I got this error:
[!] The platform of the target 'RNMacOS5-macOS' (macOS 10.14) is not compatible with 'RNFBAuth (8.2.0)', which does not support 'macOS'.
I've looked into the issues and Google and I guess this library supports macOS and even people face a different problem(s) than mine. I've looked into the issues and Google and I guess this library supports macOS and even people face a different problem(s) than mine. Which means they installed the library successfully, IMO but I can't even install the library.
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:Not imported yet
iOS
Click To Expand
INFO: this pod file is belongs to macOS project. Not iOS
ios/Podfile
:AppDelegate.m
:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:8.2.0
Firebase
module(s) you're using that has the issue:N/A
TypeScript
?No, I'm not
The text was updated successfully, but these errors were encountered: