diefferson / http_certificate_pinning

Https Certificate pinning for Flutter
Apache License 2.0
84 stars 71 forks source link

[Build error] Support iOS versions 9.0 & above by Rebuilding and republishing #1

Closed robinjohn closed 3 years ago

robinjohn commented 3 years ago
Command CompileSwift failed with a nonzero exit code
/Users/<user>/.pub-cache/hosted/pub.dartlang.org/http_certificate_pinning-1.0.3/ios/Classes/SwiftHttpCertificatePinningPlugin.swift:3:8: error: compiling for iOS 8.0, but module 'CryptoSwift' has a minimum deployment target of iOS 9.0: /Users/<user>/work/projects/merchantapp4/build/ios/Debug-Citizen-Staging-iphoneos/CryptoSwift/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios.swiftmodule
import CryptoSwift
       ^
...
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'nanopb' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'VYNFCKit' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'SQLCipher' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'SDWebImage' from project 'Pods')
robinjohn commented 3 years ago

Closing this. In case of this error, add a line into your project's <project>/ios/Podfile before install-all-pods , as in my case: pod 'CryptoSwift', '0.12.0'