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"的问题
- Linguagem predominante
- TypeScript
- Estrelas
- 2.8k
- Forks
- 258
- Merge médio
- 3d 1h
- PRs com merge (30d)
- 2
Descrição
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).
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.