Flutter 在运行 build 或 run 时抛出错误
Posted
技术标签:
【中文标题】Flutter 在运行 build 或 run 时抛出错误【英文标题】:Flutter throws an error when running build or run 【发布时间】:2021-09-15 11:58:19 【问题描述】:当我尝试运行或运行颤振项目时,我不断收到此问题
/Users/user1/Projects/projectx/ios/Pods/FBSDKCoreKit_Basics/Sources/FBSDK
CoreKit_Basics/FBSDKUserDataStore.m:19:9: fatal error:
'FBSDKUserDataStore.h' file not found
#import "FBSDKUserDataStore.h"
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
note: Removed stale file
'/Users/user1/Library/Developer/Xcode/DerivedData/Runner-axlixevsrpjdqpcqvk
bkkcevsnce/Build/Products/Debug-iphonesimulator/wakelock/wakelock.framework'
【问题讨论】:
【参考方案1】:这是由其中一个依赖项中的错误引起的,已发布更新并且我能够运行该应用程序。
【讨论】:
以上是关于Flutter 在运行 build 或 run 时抛出错误的主要内容,如果未能解决你的问题,请参考以下文章
Flutter run --no-build无法与--release一起使用
我迁移到空安全,我无法运行“flutter pub run build_runner build”而不抛出错误
Flutter-flutter run报错Could not build the application for the simulator.
解决Flutter升级后,flutter run 卡在gradle build running的问题
使用 json_serializable (flutter packages pub run build_runner build) 问题