regulaforensics / DocumentReader-iOS

iOS Framework for reading and validation of identification documents
58 stars 15 forks source link

Module compiled with Swift 4.1 cannot be imported by the Swift 4.2 compiler #6

Closed olcayertas closed 6 years ago

olcayertas commented 6 years ago

Please recompile your framework with Xcode 10 and republish it on Cocoapods.

manhlx3006 commented 6 years ago

You could try to add this code to end of your Podfile as well.

post_install do |installer| installer.pods_project.targets.each do |target| if ['DocumentReader'].include? target.name target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = 'change_to_your_compatible_compiler_version' end end end end

DzmitrySmaliakou commented 6 years ago

Hello @olcayertas,

Sorry for long response, you can use latest beta version pod:

pod 'DocumentReaderBeta'

olcayertas commented 6 years ago

@DmitrySmolyakov shoul i also add beta to DocumentReaderFull?

DzmitrySmaliakou commented 6 years ago

@olcayertas No, DocumentReaderCore.framework (pod DocumentReaderFull) was compiled as Objective C framework, so it worked fine with any versions of xCode