gpt4 book ai didi

ios - Flutter_tts 不能在 iOS 上运行

转载 作者:IT王子 更新时间:2023-10-29 07:06:07 53 4
gpt4 key购买 nike

我正在尝试使用 Flutter_tts 编写一个在 flutter 上朗读文本的应用程序库,它在 Android 上运行良好,但是当我尝试在 iOS 设备上运行它时,出现错误:

 === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===    ld: warning: Could not find auto-linked library 'swiftDispatch'    ld: warning: Could not find auto-linked library 'swiftCoreMedia'    ld: warning: Could not find auto-linked library 'swiftAVFoundation'    ld: warning: Could not find auto-linked library 'swiftFoundation'    ld: warning: Could not find auto-linked library 'swiftsimd'    ld: warning: Could not find auto-linked library 'swiftObjectiveC'    ld: warning: Could not find auto-linked library 'swiftCoreFoundation'...
我之前将我的构建系统切换到遗留构建系统并将我的“Swift 语言版本”指定为“Swift 4.2”

当我将构建系统切换到“新构建系统”时,它会给我

Xcode's output:↳    error: Multiple commands produce '/Users/dimazhylko/FlutterProjects/flutter_tts_plugin_test/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework':    1) Target 'Runner' has copy command from '/Users/dimazhylko/FlutterProjects/flutter_tts_plugin_test/ios/Flutter/Flutter.framework' to '/Users/dimazhylko/FlutterProjects/flutter_tts_plugin_test/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'    2) That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”    warning: Not running swift-stdlib-tool: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES is enabled, but the product type 'com.apple.product-type.library.static' is not a wrapper type. (in target 'Pods-Runner')    warning: ignoring duplicated output file: '/Users/dimazhylko/FlutterProjects/flutter_tts_plugin_test/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework' (in target 'Runner')    note: Using new build systemnote: Planning buildnote: Constructing build description

降级 Swift 版本也无济于事。

我还能尝试什么来解决这个问题?或者你可以推荐另一个库?(我已经试过 Tts 但它看起来不是一个好的选择,因为它只适用于 flutter v“0.5.0”(Dart 版本 2.0.0<)

I also get this warning when I open Xcode

最佳答案

在不使用 -i swift 标志的情况下创建 flutter 项目时,这是一个已知问题。我在这里概述了similar issue

flutter create -i swift my_app

作为一个糟糕的解决方法,您可以使用 -i swift 标志创建一个新的 flutter 项目,然后从当前项目复制您的文件。

关于ios - Flutter_tts 不能在 iOS 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52493409/

53 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com