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

ios出现Invalid `react-native-safe-area-context.podspec` file: undefined method `visionos' for #<Pod::Specification name="react-native-safe-area-context"的问题

Abierto
#618 1 comentario 4 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
2.8k
Forks
258
Merge medio
3 d 1 h
PR fusionados (30 d)
2

Descripción

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used [patch-package](https://github.com/ds300/patch-package) to patch `react-native-safe-area-context@4.14.1` for the project I'm working on.

Here is the diff that solved my problem:

```diff
diff --git a/node_modules/react-native-safe-area-context/react-native-safe-area-context.podspec b/node_modules/react-native-safe-area-context/react-native-safe-area-context.podspec
index 248e1f4..fdc5086 100644
--- a/node_modules/react-native-safe-area-context/react-native-safe-area-context.podspec
+++ b/node_modules/react-native-safe-area-context/react-native-safe-area-context.podspec
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = "12.4"
s.osx.deployment_target = "10.15"
s.tvos.deployment_target = "12.4"
- s.visionos.deployment_target = "1.0"
+ # s.visionos.deployment_target = "1.0"

s.source = { :git => "https://github.com/th3rdwave/react-native-safe-area-context.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm}"
```

This issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.