错误(Xcode):由于之前的 58 个错误,无法编译`super_native_extensions`(lib)

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

我正在尝试在我的 M1 Macbook Pro 上运行 Flutter 程序,并使用 Xcode 15.0.1。但是,我收到以下错误:

Launching lib/main.dart on iPhone 15 Pro in debug mode...

Xcode build done. 36.7s

Failed to build iOS app Error

(Xcode): could not compile super_native_extensions (lib) due to 58 previous errors 

/Users/yanivsagy/code/instaboard/instaboard/ios/Pods/SEVERE:0:0` 

Could not build the application for the simulator. 

Error launching application on iPhone 15 Pro.

有人知道如何解决这个问题吗?

flutter dart
1个回答
0
投票

升级 Rust 版本并没有解决这个问题。这是我正在使用的版本

  • rustc = 1.74.1
  • cocoapods = 1.14.3
  • flutter = 3.19.0
  • dart = 3.3.0
  • ruby = 2.6.10p210

我尝试删除 rm -rf ios/Pods ios/Podfile.lock 并进行新的重建。没有运气。我在模拟器中使用的是 Xcode 版本 15.3 和 iOS 版本 17.0.1

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