XCode 15 React-Native Troubleshooting Guides
3 min readSep 22, 2023
No template named ‘unary_function’ in namespace ‘std’; did you mean ‘__unary_function’?
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
end
An attribute list cannot appear here
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.15.0'
CocoaPods could not find compatible versions for pod “FirebaseFirestore”
Upgrade Firebase higher than 18.5.0
Package.json
"@react-native-firebase/analytics": "18.5.0",
"@react-native-firebase/app": "18.5.0",
"@react-native-firebase/crashlytics": "18.5.0",
"@react-native-firebase/dynamic-links": "18.5.0",
"@react-native-firebase/firestore": "18.5.0",
"@react-native-firebase/messaging": "18.5.0",
rm ios/Podfile.lock
The Swift pod `FirebaseCoreInternal` depends upon `GoogleUtilities`, which does not define module
pod 'GoogleUtilities', :modular_headers => true
The Swift pod `FirebaseSessions` depends upon `FirebaseCore`, …
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'FirebaseInstallations', :modular_headers => true
pod 'GoogleDataTransport', :modular_headers => true
pod 'nanopb', :modular_headers => true
Cycle inside App; building could produce unreliable results.
Reorder Embed Foundation Extensions
Swift class extensions and categories on Swift classes are not allowed to have +load methods
objc[80308]: Swift class extensions and categories on Swift classes are not allowed to have +load methods
Replace in VisionCamera
@interface objc_name (FrameProcessorPlugin)
...
+(void)load
with
@interface objc_name (FrameProcessorPlugin) <FrameProcessorPluginBase>
...
__attribute__((constructor)) static void VISION_CONCAT(initialize_, objc_name)() \