tensorflow / swift

Swift for TensorFlow
https://tensorflow.org/swift
Apache License 2.0
6.12k stars 608 forks source link

Unable to determine Swift version for the following pods #618

Open rayyan808 opened 3 years ago

rayyan808 commented 3 years ago

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