react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

Invalid `RNSVG.podspec` file: undefined method `visionos' for #<Pod::Specification name="RNSVG">.

Open Etaliya opened this issue 11 months ago • 12 comments

Pod install error

"react": "18.2.0", "react-native": "0.72.11", "react-native-svg": "^15.1.0",

[!] Invalid Podfile file: [!] Invalid RNSVG.podspec file: undefined method `visionos' for #<Pod::Specification name="RNSVG">.

from /Users/mac/Desktop/WorkSpace/Rootchat/RootchatRN/node_modules/react-native-svg/RNSVG.podspec:18

-------------------------------------------

s.tvos.exclude_files = '**/*.macos.{h,m,mm}'

s.visionos.exclude_files = '**/*.macos.{h,m,mm}'

s.osx.exclude_files = '**/*.ios.{h,m,mm}'

-------------------------------------------

.

from /Users/mac/Desktop/WorkSpace/Rootchat/RootchatRN/ios/Podfile:29

-------------------------------------------

target 'rootsapp' do

config = use_native_modules!

-------------------------------------------

Etaliya avatar Mar 07 '24 13:03 Etaliya

Fixed for me by updating Cocoapods, see https://github.com/getsentry/sentry-react-native/issues/3547#issuecomment-1911977140

bananer avatar Mar 07 '24 14:03 bananer

Fixed for me by updating Cocoapods, see getsentry/sentry-react-native#3547 (comment)

Worked for me too! Thanks

somias avatar Mar 07 '24 16:03 somias

Updating cocoapods did'n worked for me also ive tried to link react-native-svg manually in ios, that also did'n worked

---update--- i was able to fix the problem navigate to node_module/react-native-svg/RNSVG.podspec file

and delete s.visionos.exclude_files = '**/*.macos.{h,m,mm}' and :visionos => "1.0"

and create a patch using "patch-package"

ssandroidify avatar Mar 08 '24 14:03 ssandroidify

Fixed by adding "image": "latest" in my eas.json for the respective profile I was building with

Bellarose143 avatar Mar 11 '24 23:03 Bellarose143

@ssandroidify thank's so much! This works for me

kvrscream avatar Mar 19 '24 12:03 kvrscream

"react": "18.2.0", "react-native": "0.73.6", "react-native-svg": "^15.1.0",

Issue still remaining, is there any update about this bug?

People who has that issue, update "watchman" on your mac, with watchman your Pod version will be updated as well and this will fix the problem that you have.

DogukanTansuk avatar Mar 20 '24 06:03 DogukanTansuk

getting the same error, Does anyone find any stable solution?

Updating Watchman didn't work. @DogukanTansuk

@ssandroidify could you please help me with the patch package creation?

TanveerShah0 avatar Mar 21 '24 09:03 TanveerShah0

@TanveerShah0 make these 2 changes in below mentioned file

navigate to - node_module/react-native-svg/RNSVG.podspec file

and delete s.visionos.exclude_files = '**/*.macos.{h,m,mm}' and :visionos => "1.0"

then install this package patch-package

then run cmd - npx patch-package react-native-svg

ssandroidify avatar Mar 21 '24 10:03 ssandroidify

Last version of react-native-svg is not stable. I downgraded to 14.1.0 yarn add [email protected] and pod install worked.

muhammad-kumail avatar Mar 23 '24 21:03 muhammad-kumail

getting the same error, Does anyone find any stable solution?

Updating Watchman didn't work. @DogukanTansuk

@ssandroidify could you please help me with the patch package creation?

Ensure that your cocoapods version above 1.14.3, please follow the steps to ensure that you're in right configuration to fix this problem;

rm -rf node_modules yarn.lock ios/Pods ios/Podfile.lock
yarn && npx pod-install

This is fixed my problem if it is not works for you then yours is different than mine. Our 4 team member also fixed like this.

DogukanTansuk avatar Mar 24 '24 07:03 DogukanTansuk

Last version of react-native-svg is not stable. I downgraded to 14.1.0 yarn add [email protected] and pod install worked.

That's work for me. Thank you

Mcherif34 avatar Apr 03 '24 01:04 Mcherif34

Whats the status on this? This is still occuring

Amurmurmur avatar May 07 '24 19:05 Amurmurmur

Hi everyone, This bug has been fixed and released in the latest version 15.3.0 🎉 After the update everything should work and if not - feel free to ping me here or open a new issue.

jakex7 avatar May 16 '24 13:05 jakex7

just downgrade the react-native-svg. use this also :: npm i [email protected]

premsuthar42 avatar May 23 '24 13:05 premsuthar42

Whats the status on this? This is still occuring

downgrade the npm svg package

premsuthar42 avatar May 23 '24 13:05 premsuthar42

Last version of react-native-svg is not stable. I downgraded to 14.1.0 yarn add [email protected] and pod install worked.

npx expo install [email protected] worked for me

pedroamuniz avatar May 27 '24 20:05 pedroamuniz

Last version of react-native-svg is not stable. I downgraded to 14.1.0 yarn add [email protected] and pod install worked.

I tried the news version 15.4 but its not working...

But this Solution helped me out.TY

hassanad94 avatar Aug 01 '24 18:08 hassanad94