Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Unable to determine Swift version for the following pod" - Error

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?

like image 270
Nikita Patil Avatar asked Nov 04 '19 10:11

Nikita Patil


2 Answers

Try to set the Swift version by including

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

like image 71
Bogdan Ustyak Avatar answered Nov 09 '22 20:11

Bogdan Ustyak


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.

like image 23
La Win Ko Avatar answered Nov 09 '22 20:11

La Win Ko