0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ビルド時に GULSceneDelegateSwizzler.h not found が発生したときの対処

0
Posted at

pubspec.yaml に以下の記述を追加して、ビルドした。

dependencies:

  firebase_core: ^0.4.4+3
  firebase_auth: ^0.15.5+2
  cloud_firestore: ^0.13.4+2

すると、iOS Simulator で実行しようとした際にビルドエラーが発生。

# import <GoogleUtilities/GULSceneDelegateSwizzler.h>

Pods/FirebaseAuth/Firebase/Auth/Source/Auth/FIRAuth.m:32:9: 'GoogleUtilities/GULSceneDelegateSwizzler.h' file not found

以下のコマンドを実行

pod update

するとこんなエラーが。

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Flutter":
  In Podfile:
    Flutter (from `Flutter`)

    sqflite (from `.symlinks/plugins/sqflite/ios`) was resolved to 0.0.1, which depends on
      Flutter

Specs satisfying the `Flutter (from `Flutter`), Flutter` dependency were found, but they required a higher minimum deployment target.

Flutter をあげるために、deployment target を 11.4 に変更。

image.png

image.png

そして

flutter clean

これでiOS Simulatorで無事実行できた。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?