flutter:找不到模块“path_provider_foundation”

问题描述 投票:0回答:1

您好,我正在尝试运行我的 flutter 项目,但出现以下错误:

Parse Issue (Xcode): Module 'path_provider_foundation' not found
/Users/juliapak/Desktop/app_projects/testerapp/ios/Runner/GeneratedPluginRegistrant.m:11:8


Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

到目前为止我尝试过的:

flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
flutter pub get

然后我打开 Runner.xcodeproj 并尝试从那里运行。我也尝试从 Runner.xcworkspace 运行

flutter xcode flutter-ios-build
1个回答
0
投票

好吧,我现在解决了..

必须进入 Runner.xcworkspace 并将 arm64 添加到模拟器的排除架构中

看起来像这样: enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.