swift icon indicating copy to clipboard operation
swift copied to clipboard

Unable to determine Swift version for the following pods

Open rayyan808 opened this issue 4 years ago • 0 comments

Added the tensorflow library to my custom flutter plugin, within the iOS code the following occurs after adding it to the Podfile `[!] Unable to determine Swift version for the following pods:

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

I've already tried: target 'Runner' do use_frameworks! use_modular_headers!

post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_iso_build_settings(target) target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '5.0' config.build_settings['ENABLE_BITCODE'] = 'NO' end end

rayyan808 avatar Jul 10 '21 20:07 rayyan808