【发布时间】:2021-06-05 02:20:30
【问题描述】:
我正在使用 Flutter TTS 插件制作一个简单的文本转语音应用程序,并在我的物理 iPhone 和 iPad 上运行它以进行调试。
我尝试用谷歌搜索它,颤振的 github 存储库说我应该运行颤振分析,我这样做了,但它说没有发现任何问题。所以我不确定该怎么做。我认为这是xcode的问题。
这是我的错误:
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/flutter_tts-umbrella.h"
^
/Users/ragz/Desktop/Desktop/Development/Projects/flutter/useless_app/ios/Pods/Target Support
Files/flutter_tts/flutter_tts-umbrella.h:13:9: note: in file included from
/Users/ragz/Desktop/Desktop/Development/Projects/flutter/useless_app/ios/Pods/Target Support
Files/flutter_tts/flutter_tts-umbrella.h:13:
#import "FlutterTtsPlugin.h"
^
/Users/ragz/.pub-cache/hosted/pub.dartlang.org/flutter_tts-1.0.0/ios/Classes/FlutterTtsPlugin.h:1:9: error:
'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^
<unknown>:0: error: could not build Objective-C module 'flutter_tts'
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
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.4.99. (in target 'flutter_tts' 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.4.99. (in target 'Flutter' from project 'Pods')
Could not build the precompiled application for the device.
Error launching application on iPad.
【问题讨论】:
-
您是否在 inpo.plist 文件中添加了所需的权限??
-
什么意思?