Flutter 在运行 build 或 run 时抛出错误

问题描述

当我尝试运行或运行 Flutter 项目时,我总是遇到这个问题

/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'

解决方法

这是由一个依赖项中的错误引起的,已发布更新并且我能够运行该应用程序。