gpt4 book ai didi

ios - 未找到模块 'audio_session'

转载 作者:行者123 更新时间:2023-12-04 12:29:42 31 4
gpt4 key购买 nike

我尝试在带有 M1 芯片的新 Mac 上构建现有的 flutter 项目。
关于 audio_session 模块丢失,我面临以下错误。

Launching lib/main.dart on iPhone 12 in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 340ms
Xcode build done. 4.7s
Failed to build iOS app
Error output from Xcode build:

objc[7636]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f2fe0188) and ?? (0x117e8c2b8). One of the two will be used. Which one is undefined.
objc[7636]: Class AMSupportURLSession is implemented in both ?? (0x1f2fe01d8) and ?? (0x117e8c308). One of the two will be used. Which one is undefined.
** BUILD FAILED **


Xcode's output:

/Users/user/Projects/myproject/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'audio_session' not found
@import audio_session;
~~~~~~~^~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 12.
有什么想法吗?

最佳答案

你应该
1.在 xcode 中打开“Runner.xcworkspace”,而不是“Runner.xcodeproj”
2.一切顺利

关于ios - 未找到模块 'audio_session',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66691954/

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