Comments (8)
Hi there - just in case anyone is still searching: It's due to an update of the Swift language. You can change the language version in Xcode to use the old version instead. Make sure to change it for Pods > SCrypto
.
See:
dart-lang/crypto#85 (comment)
To change this in the Podfile, see:
https://stackoverflow.com/questions/50458556/flutter-swift-version-must-be-set-to-a-supported-value
Adding
config.build_settings['SWIFT_VERSION'] = '4.2' # required by scrypto
to post_install
worked for me.
from flutter_string_encryption.
Same here. Did you find a solution to this?
from flutter_string_encryption.
Same error,Have any solution?
from flutter_string_encryption.
Have you added use_frameworks! inside the Podfile?
from flutter_string_encryption.
i add use_frameworks! also has this error,
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/DATA/Work/DEV/Dart/Flutter/workspace/apcc_wallet/ios/Pods/SCrypto/Source/SCrypto.swift:107:111: error: using '!' is not allowed here; perhaps '?' was intended?
typealias Function = (_ data: UnsafeRawPointer, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>) -> UnsafeMutablePointer<UInt8>!
^ ~
?
/DATA/Work/DEV/Dart/Flutter/workspace/apcc_wallet/ios/Pods/SCrypto/Source/SCrypto.swift:188:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func MD2() -> Self {
^~~~~~~
/DATA/Work/DEV/Dart/Flutter/workspace/apcc_wallet/ios/Pods/SCrypto/Source/SCrypto.swift:198:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func MD4() -> Self {
^~~~~~~
/DATA/Work/DEV/Dart/Flutter/workspace/apcc_wallet/ios/Pods/SCrypto/Source/SCrypto.swift:208:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func MD5() -> Self {
from flutter_string_encryption.
Same problem. Anyone found the solution?
from flutter_string_encryption.
Not sure what caused this problem, but I think I found the solution :
- make sure your create a fresh, empty Flutter project with the Swift support ON MAC (you choose this when you create the project in Android Studio). If you created the project on Windows, this error will still show.
- copy pubspec.yaml, everything from lib folder and any other directories and files your project needs into the new freshly created project on MAC
- open ios/workspace file in XCode and set your signing info - and everything else necessary
- edit Podspec inside iOS dir and just uncomment "platform :ios, '9.0'". No need to change anything else
- connect your device/emulator and type "flutter run" - it should work
Tried on latest Catalina 10.15 and latest XCode 11.3.1
from flutter_string_encryption.
Hi there - just in case anyone is still searching: It's due to an update of the Swift language. You can change the language version in Xcode to use the old version instead. Make sure to change it for
Pods > SCrypto
.
See:
dart-lang/crypto#85 (comment)To change this in the Podfile, see:
https://stackoverflow.com/questions/50458556/flutter-swift-version-must-be-set-to-a-supported-valueAdding
config.build_settings['SWIFT_VERSION'] = '4.2' # required by scrypto
to
post_install
worked for me.
@KarimGeiger thankyou it was work for me
from flutter_string_encryption.
Related Issues (20)
- CocoaPods could not find compatible versions for pod "flutter_string_encryption HOT 3
- Run after upgrade to 0.2.0 HOT 2
- Fatal error: args are formatted badly HOT 6
- Unable to determine Swift version HOT 5
- implement aes-ecb HOT 1
- Gradle error HOT 1
- Failed to resolve: android.test.runner:1.1.1
- Why it is static_framework? HOT 1
- Encrypted data will be lost when user upgrades to Android 9 HOT 4
- Could not find com.github.tozny:java-aes-crypto:1.1.0 HOT 1
- Failed to handle method call:- java.lang.IllegalArgumentException: Cannot parse iv:ciphertext:mac HOT 2
- how to use it by aes cbc mode? HOT 1
- Crash on iOS, Fatal error: Unexpectedly found nil while unwrapping an Optional value
- Undefined symbols for architecture arm64
- Null Safety HOT 3
- Issue: Deprecated Android Embedding Version HOT 2
- Upgrade to Dart 3
- Xcode 9.4 build issues HOT 7
- remove flutter dependency HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_string_encryption.