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

Đang mở
#618 1 bình luận 4 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
2.8k
Fork
258
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
2

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.