28

I am trying to install pod 'SVProgressHUD' cocoa pod, but it is giving following error while installing pod file.

[!] Unable to determine Swift version for the following pods:

- `HexColors` does not specify a Swift version and none of the targets (`FaveoHelpdeskPro_ObjC`) 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.

Erro Screenshot

How I can resolve this issue?

HangarRash
  • 7,314
  • 5
  • 5
  • 32
Nikita Patil
  • 674
  • 1
  • 7
  • 17

3 Answers3

78

Try to set the Swift version by including

ENV['SWIFT_VERSION'] = '5' at the top of your Podfile.

Bogdan Ustyak
  • 5,639
  • 2
  • 21
  • 16
9

It's because your project is very old and never set Swift version in the project. Try to create one new swift file in the project. Xcode will automatically set Swift version in project build settings. Then you can pod install again and it will be solved.

La Win Ko
  • 254
  • 2
  • 10
-2

Create a swift file if there aren't any in the project.

This link can be helpful: https://github.com/fluttercommunity/flutter_workmanager/issues/57

M--
  • 25,431
  • 8
  • 61
  • 93
grape100
  • 341
  • 4
  • 11