mrousavy/react-native-blurhash

TVos iOS - Unable to determine Swift version

ctheil opened this issue · 1 comments

ctheil commented

Bug

Describe the bug
After running yarn add react-native-blurhash && cd ios && pod install && cd .. the following error is thrown when installing pods for RN blurhash:
`Installing react-native-blurhash (1.1.10)
[!] Unable to determine Swift version for the following pods:

  • react-native-blurhash-tvOS does not specify a Swift version and none of the targets (DigiSign-tvOS and DigiSign-tvOSTests) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.`

To Reproduce
Steps to reproduce the behavior:

  1. In RN TvOS project run the above command
  2. See thrown error (same as above).

Expected behavior
Pods install correctly.

Screenshots
Screenshot 2023-05-23 at 2 19 52 PM
Screenshot 2023-05-23 at 2 20 08 PM

ctheil commented

Solved:

In Xcode, select the tvOS build target (for me its DigiSign-tvOS, navigate to Build Settings, and click the plus icon to add a new User Defined Setting. Enter SWIFT_VERSION 5.0 and re-run pod install or npx pod install to install the pod.

Screenshot 2023-05-23 at 2 29 48 PM