GithubHelp home page GithubHelp logo

generating a build for iOS introduces an error in 'SwiftSpeechToTextPlugin' is only available on iOS 10.0 or later [-Wunguarded-Availability] about speech_to_text HOT 4 CLOSED

csdcorp avatar csdcorp commented on August 14, 2024
generating a build for iOS introduces an error in 'SwiftSpeechToTextPlugin' is only available on iOS 10.0 or later [-Wunguarded-Availability]

from speech_to_text.

Comments (4)

EllenGuissoni avatar EllenGuissoni commented on August 14, 2024

I can only generate a build when I clear the cache

It looks like the flutter installation cache folder is broken.
rm -rf / Users/macuser/Programs/flutter/bin/cache

from speech_to_text.

sowens-csd avatar sowens-csd commented on August 14, 2024

The build works when you clear the cache? If so that's odd unless you changed the app in the meantime. Looks like you're trying to build your own application that depends on SpeechToText, not the included example? It is true that the SpeechToText plugin only supports iOS 10 or later.

Looks like I should add the guard conditions so that I don't block other applications that want to support lower versions. I'll look at those changes. Thanks for the report.

from speech_to_text.

sowens-csd avatar sowens-csd commented on August 14, 2024

So I had a look, it is possible to make it support lower versions but it makes the code significantly less readable and given that I can't even get a simulator below iOS 10 anymore I don't think there's a market for it. I think that it is probably better for the plugin to leave it at iOS 10 and require any applications that use it to set their minimum iOS version to 10 or above. Please let me know if that causes problems.

If you're curious there's a version of the plugin code in the iOS-8 branch of the repo. Feel free to try it out if you'd like. Because it doesn't have the @available 10 check around the plugin it won't throw the unguarded availability check at compile time. However I haven't been able to test it on an old OS. If there's sufficient demand I'll look at adding it to master.

from speech_to_text.

sowens-csd avatar sowens-csd commented on August 14, 2024

The latest commit changes the Podfile for the example to declare iOS 10 which removes the unguarded warning. I'm going to close this until I get more feedback on a need for support below iOS 10.
platform :ios, '10.0'

from speech_to_text.

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.