M1 MacでiOS端末のエミュレータを起動すると
[verbose-2:profiler_metrics_ios.mm(184)] error retrieving thread information: (ipc/send) invalid destination port
のメッセージが出てくるため検索してみると、下記のコマンドを打ち込むと良いと書いてあったので試しました。
flutter channel beta
flutter upgrade
flutter clean
flutter run
をすると、設定がおかしくなってしまったのか、下記のエラーが出てiOSエミュレータが動きません。
これは一体何をすれば良いのでしょうか??
Launching lib/main.dart on iPhone 12 Pro Max in debug mode... Upgrading contents.xcworkspacedata Running Xcode build... Xcode build done. 12.1s Failed to build iOS app Error output from Xcode build: ↳ objc[12091]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x2083cc188) and ?? (0x113f182b8). One of the two will be used. Which one is undefined. objc[12091]: Class AMSupportURLSession is implemented in both ?? (0x2083cc1d8) and ?? (0x113f18308). One of the two will be used. Which one is undefined. ** BUILD FAILED ** Xcode's output: ↳ ../../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.19.1/lib/src/picture_provider.dart:52:59: Error: No named parameter with the name 'nullOk'. context != null ? Localizations.localeOf(context, nullOk: true) : null, ^^^^^^ ../../../flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don't match. static Locale localeOf(BuildContext context) { ^^^^^^^^ Command PhaseScriptExecution failed with a nonzero exit code 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 Pro Max.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/02/22 00:14
2021/02/22 01:06