From 768466d8b0c6172f2513624631897f7b7ff9855f Mon Sep 17 00:00:00 2001 From: Jihoon Seo Date: Mon, 13 May 2024 16:39:59 +0900 Subject: [PATCH] fix: Fix pod install not working with lower version of Cocoapods due to visionOS (#2240) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Summary On Cocoapods versions of lower than 1.14.3, pod install fails due to it not understanding the visionos field. Our company cannot use a higher version of Cocoapods right now, so it would be beneficial if we or other similar people can use the latest version of react-native-svg without having to upgrade the Cocoapods version. I was able to find this solution from https://github.com/getsentry/sentry-react-native/issues/3547#issuecomment-1907677879 ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | Android | ❌ | ## Checklist - [x] I have tested this on a device and a simulator - [ ] I added documentation in `README.md` - [ ] I updated the typed files (typescript) - [ ] I added a test for the API in the `__tests__` folder --- RNSVG.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNSVG.podspec b/RNSVG.podspec index e28c6093..878dfb42 100644 --- a/RNSVG.podspec +++ b/RNSVG.podspec @@ -15,7 +15,7 @@ Pod::Spec.new do |s| s.source_files = 'apple/**/*.{h,m,mm}' s.ios.exclude_files = '**/*.macos.{h,m,mm}' s.tvos.exclude_files = '**/*.macos.{h,m,mm}' - s.visionos.exclude_files = '**/*.macos.{h,m,mm}' + s.visionos.exclude_files = '**/*.macos.{h,m,mm}' if s.respond_to?(:visionos) s.osx.exclude_files = '**/*.ios.{h,m,mm}' s.requires_arc = true s.platforms = { :osx => "10.14", :ios => "12.4", :tvos => "12.4", :visionos => "1.0" }