Я пытаюсь создать существующий проект флаттера на новом Mac с чипом M1. Я столкнулся со следующей ошибкой в связи с отсутствием модуля 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.
Есть предположения?
audio_session
пакет вpubspec.yml
файл. после этого запустите командуflutter pub get
иflutter run
- person Ranjit   schedule 18.03.2021audio_session
. - person kohjakob   schedule 18.03.2021ios/Runner.xcodeproj
вместоios/Runner.xcworkspace
. Подробнее об этом здесь - person kohjakob   schedule 18.03.2021