Giter Club home page Giter Club logo

Comments (8)

KarimGeiger avatar KarimGeiger commented on August 28, 2024 1

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.

9thwall avatar 9thwall commented on August 28, 2024

Same here. Did you find a solution to this?

from flutter_string_encryption.

mickyliu945 avatar mickyliu945 commented on August 28, 2024

Same error,Have any solution?

from flutter_string_encryption.

sroddy avatar sroddy commented on August 28, 2024

Have you added use_frameworks! inside the Podfile?

from flutter_string_encryption.

jjjachyty avatar jjjachyty commented on August 28, 2024

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 {

@sroddy

from flutter_string_encryption.

mixdesign avatar mixdesign commented on August 28, 2024

Same problem. Anyone found the solution?

from flutter_string_encryption.

baki83 avatar baki83 commented on August 28, 2024

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.

shubh-151411 avatar shubh-151411 commented on August 28, 2024

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.

@KarimGeiger thankyou it was work for me

from flutter_string_encryption.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.