Код: Выделить всё
firebase: 11.1.0
@react-native-firebase/app: 23.7.0
@react-native-firebase/auth: 23.7.0
@react-native-firebase/firestore: 23.7.0
/Users/tomaszkozdra/Desktop/kolejne-gowno/noteapp/NoteApp/ios/Pods/Target Support Files/gRPC-C++/gRPC-C++-dummy.m файл карты модуля '/Users/tomaszkozdra/Desktop/kolejne-gowno/noteapp/NoteApp/ios/Pods/Headers/Private/grpc/gRPC-Core.modulemap' не найден /Users/tomaszkozdra/Desktop/kolejne-gowno/noteapp/NoteApp/ios/Pods/Target Support Files/gRPC-C++/gRPC-C++-dummy.m
Есть ли у вас идеи, как это решить? Я попытался изменить свой подфайл так, чтобы он выглядел так:
Код: Выделить всё
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
require 'json'
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
def ccache_enabled?(podfile_properties)
return ENV['USE_CCACHE'] == '1' if ENV['USE_CCACHE']
podfile_properties['apple.ccacheEnabled'] == 'true'
end
ENV['RCT_NEW_ARCH_ENABLED'] ||= '0' if podfile_properties['newArchEnabled'] == 'false'
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] ||= podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
ENV['RCT_USE_RN_DEP'] ||= '1' if podfile_properties['ios.buildReactNativeFromSource'] != 'true' && podfile_properties['newArchEnabled'] != 'false'
ENV['RCT_USE_PREBUILT_RNCORE'] ||= '1' if podfile_properties['ios.buildReactNativeFromSource'] != 'true' && podfile_properties['newArchEnabled'] != 'false'
platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
prepare_react_native_project!
target 'NoteApp' do
use_expo_modules!
# Autolinking
if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"]
else
config_command = [
'npx', 'expo-modules-autolinking',
'react-native-config', '--json', '--platform', 'ios'
]
end
config = use_native_modules!(config_command)
#
# Statyczne frameworki są wymagane dla Firebase i gRPC
#
use_frameworks! :linkage => :static
# Ustawienie wymagane przez React Native Firebase w konfiguracjach z frameworkami
$RNStaticFramework = true
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
:app_path => "#{Pod::Config.instance.installation_root}/..",
:privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
)
post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
:ccache_enabled => ccache_enabled?(podfile_properties),
)
installer.pods_project.targets.each do |target|
# Apple Silicon (M1/M2/M4) — unikamy błędów architektur symulatora
target.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
# Zezwalaj na import nie‑modularnych nagłówków we frameworkach
target.build_configurations.each do |config|
config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
# BoringSSL-GRPC fix
if target.name == 'BoringSSL-GRPC'
target.source_build_phase.files.each do |file|
if file.settings && file.settings['COMPILER_FLAGS']
flags = file.settings['COMPILER_FLAGS'].split
flags.reject! { |flag| flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' }
file.settings['COMPILER_FLAGS'] = flags.join(' ')
end
end
end
end
end
end
/Users/tomaszkozdra/Desktop/kolejne-gowno/noteapp/NoteApp/node_modules/@react-native-firebase/firestore/ios/RNFBFirestore/RNFBFirestoreModule.m /Users/tomaszkozdra/Desktop/kolejne-gowno/noteapp/NoteApp/node_modules/@react-native-firebase/firestore/ios/RNFBFirestore/RNFBFirestoreModule.m:34:1 Неизвестное имя типа "RCT_EXTERN"
/Users/tomaszkozdra/Desktop/kolejne-gowno/noteapp/NoteApp/node_modules/@react-native-firebase/firestore/ios/RNFBFirestore/RNFBFirestoreModule.m:47:1 Ожидаемое тело метода
/Users/tomaszkozdra/Desktop/kolejne-gowno/noteapp/NoteApp/node_modules/@react-native-firebase/firestore/ios/RNFBFirestore/RNFBFirestoreModule.m:34:1 Неизвестное имя типа «RCT_EXTERN»
Подробнее здесь: https://stackoverflow.com/questions/798 ... e-map-file
Мобильная версия