react-native-safe-area-context
react-native-safe-area-context copied to clipboard
ios出现Invalid `react-native-safe-area-context.podspec` file: undefined method `visionos' for #<Pod::Specification name="react-native-safe-area-context"的问题
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected] for the project I'm working on.
Here is the diff that solved my problem:
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.