You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

添加device_info_plus: ^9.1.1依赖后Flutter iOS项目构建失败求助

Flutter iOS构建失败:UnmodifiableUint8ListView类型未找到

在我的Flutter项目中添加device_info_plus: ^9.1.1依赖后,尝试构建iOS应用时出现错误,构建失败。

Xcode报错信息

Error (Xcode): ../../.pub-cache/hosted/pub.dev/win32-4.1.4/lib/src/guid.dart:31:9: Error: Type 'UnmodifiableUint8ListView' not found.

环境信息

[✓] Flutter (Channel stable, 3.24.0, on macOS 14.4.1 23E224 darwin-arm64, locale en-US)
• Flutter version 3.24.0 on channel stable at /Users/mobasher/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 80c2e84975 (2 weeks ago), 2024-07-30 23:06:49 +0700
• Engine revision b8800d88be
• Dart version 3.5.0
• DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/mobasher/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15F31d
• CocoaPods version 1.15.2

已尝试的解决方案

  • 执行flutter pub upgrade win32
  • 执行以下系列命令:
    flutter pub cache clean
    flutter channel stable
    flutter pub get
    flutter pub upgrade
    

以上操作均未解决问题,寻求技术帮助。

内容的提问来源于stack exchange,提问作者user20223633

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 16:04:54