React Native Google Войти в утилиту ошибок сборки ios.h не найдено
Любая идея, почему я получаю такие странные ошибки?
Это из-за проблем зависимости? или из-за конфигураций в проекте xcode? какой-либо путь поиска заголовка и т.д. отсутствуют?
вот моя зависимость файла под. проблема возникает в Pods / boost-for-реагировать-native / boost / compatibility / cpp_c_headers
интересно, что все файлы не имеют расширения в этой папке
target 'testApp' do
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'DevSupport',
'Core',
'CxxBridge',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
# React Native third party dependencies podspecs
pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"
# If you are using React Native <0.54, you will get the following error:
# "The name of the given podspec `GLog` doesn't match the expected one `glog`"
# Use the following line instead:
#pod 'GLog', :podspec => "#{rn_path}/third-party-podspecs/GLog.podspec"
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
# react-native-maps dependencies
pod 'react-native-maps', path: rn_maps_path
pod 'react-native-google-maps', path: rn_maps_path # Remove this line if you don't want to support GoogleMaps on iOS
pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS
pod 'Google-Maps-iOS-Utils' # Remove this line if you don't want to support GoogleMaps on iOS
pod 'GoogleSignIn'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
1 ответ
У нас была та же проблема, проблема заключалась в том, что путь к заголовку в Google входил в пакет.
Несмотря на то, что мы использовали последнюю версию response-native-google-signin 0.12.0, путь к заголовку не был установлен правильно.
Уже существует объединенный PR, решающий эту проблему, не уверенный, находится ли он в выпущенном пакете / или что-то с кэшем npm.
Я сделал эти изменения вручную в xcode, теперь он работает!