OctMon / flutter_des

Java, android, ios, get the same result by DES encryption and decryption.
MIT License
14 stars 15 forks source link

Unable to determine Swift version on Mac #2

Closed Mythar closed 5 years ago

Mythar commented 5 years ago

Please add: s.swift_version = '?.?' to flutter_des.podspec Where ?.? is the swift version you are using

OctMon commented 5 years ago

you can set SWIFT_VERSION in Podfile for example:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '4.0'
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end
ethanyou725 commented 5 years ago

fatal error: 'flutter_des/flutter_des-Swift.h' file not found, after set SWIFT_VERSION in Podfile

OctMon commented 5 years ago
[!] Unable to determine Swift version for the following pods:
    - `flutter_des` does not specify a Swift version and none of the targets (`Runner`) 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.

Please check Swift for new projects:

image

Please try the created project:

image

image

image

image