appandflow / appandflow/react-native-safe-area-context

Support use_frameworks!

Ouverte
#416 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
help wanted New arch Platform: iOS
Langage dominant
TypeScript
Étoiles
2.8k
Forks
258
Merge moyen
3 j 1 h
PR mergées (30 j)
2

Description

Hi,

we are using RN 0.72 with new architecture and we've tried to use `use_frameworks! :linkage => static` to upgrade our dependency of Firebase. However after doing that compilation of `react-native-safe-area-context` fails due to missing header files.

I'm trying to fix the issues by modifying spec via Podfile:
```
if target.name == "react-native-safe-area-context" then
target.build_configurations.each do |config|
header_search = {"HEADER_SEARCH_PATHS" => [
"$(PODS_TARGET_SRCROOT)/common/cpp/",
"$(PODS_ROOT)/Headers/Public/hermes-engine/",
"$(PODS_ROOT)/Headers/Public/RCTRequired/",
"$(PODS_ROOT)/Headers/Public/FBLazyVector/",
"$(PODS_ROOT)/Headers/Public/React-callinvoker/",
"$(PODS_ROOT)/RCT-Folly/",
"$(PODS_ROOT)/boost/",
"$(PODS_ROOT)/DoubleConversion/",
"$(PODS_CONFIGURATION_BUILD_DIR)/React-NativeModulesApple/React_NativeModulesApple.framework/Headers/",
"$(PODS_CONFIGURATION_BUILD_DIR)/React-Codegen/React_Codegen.framework/Headers/",
"$(PODS_CONFIGURATION_BUILD_DIR)/React-Fabric/React_Fabric.framework/Headers/",
"$(PODS_CONFIGURATION_BUILD_DIR)/React-utils/React_utils.framework/Headers/",
"$(PODS_CONFIGURATION_BUILD_DIR)/React-debug/React_debug.framework/Headers",
"$(PODS_CONFIGURATION_BUILD_DIR)/React-RCTFabric/RCTFabric.framework/Headers",
"$(PODS_CONFIGURATION_BUILD_DIR)/React-graphics/React_graphics.framework/Headers",
"$(PODS_CONFIGURATION_BUILD_DIR)/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios/",
"$(PODS_CONFIGURATION_BUILD_DIR)/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core",
]}
config.build_settings.merge!(header_search)
end
end
```
but I wonder if there is a better way to support static frameworks than this

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.