gpt4 book ai didi

ios - flutter xcode 构建失败 fatal error : module 'connectivity' not found

转载 作者:行者123 更新时间:2023-12-04 14:11:58 25 4
gpt4 key购买 nike

我正在尝试运行我的旧项目。我更新了所有插件,代码问题已解决。但是现在如果我运行 flutter run 我会得到下面的错误

        Xcode build done.                                           16.8s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **


Xcode's output:

/Users/mdzainalabedin/padelmatchv2/ios/Runner/GeneratedPluginRegistrant.m:10
:9: fatal error: module 'connectivity' not found
@import connectivity;
~~~~~~~^~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11.

最佳答案

在浪费了这么多次之后,我发现只有在项目目录文件夹下的终端中的以下命令对我有用

rm ios/Podfile && flutter build ios

关于ios - flutter xcode 构建失败 fatal error : module 'connectivity' not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63602114/

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