swift
swift copied to clipboard
Unable to determine Swift version for the following pods
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