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"的问题

Open
#618 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.8k
Forks
258
Avg merge
3d 1h
Merged PRs (30d)
2

Description

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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.