0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

xcodeでflutterのプロジェクトを実行時、「Module 'audioplayers_darwin' not found」の対処法

Posted at

前提:ios シュミレーターでアプリを実行する

Edit Sheme

image.png

Build ConfigurationをDebugに選択

image.png

1.audioplayers_darwin 依存関係がインストールされていることを確認してください。

Flutter プロジェクトのルートディレクトリで実行してください:

flutter pub get

その後、iOS のキャッシュをクリアしてください:

flutter clean
rm -rf ios/Pods
rm -rf ios/.symlinks
rm -rf ios/Flutter/Flutter.podspec
flutter pub get

2. CocoaPods を再インストールしてください。

iOS ディレクトリに移動してから、Pod 依存関係を再インストールしてください:

cd ios
pod install --repo-update

3. Xcode を使って Flutter プロジェクトを正しく開いてください。

必ず Runner.xcworkspace で Xcode を開き、Runner.xcodeproj では開かないようにしてください。
ターミナルで以下を実行します:

open ios/Runner.xcworkspace

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?