Help us understand the problem. What is going on with this article?

XcodeのバージョンあげたらFlutterでビルドできなくなった

Buildできない

ios系のアプリを作成中。
いざ実行しようとてビルドできなくなった
Queryとtimestamp系のライブラリでエラーか?

Launching lib/main.dart on iPhone 8 in debug mode...
Running Xcode build...
Xcode build done.                                            4.8s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/ts/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:155:24: error: no visible @interface for 'FIRQuery' declares the selector 'queryWhereField:arrayContainsAny:'
            query = [query queryWhereField:fieldName arrayContainsAny:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/ts/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:157:24: error: no visible @interface for 'FIRQuery' declares the selector 'queryWhereFieldPath:arrayContainsAny:'
            query = [query queryWhereFieldPath:fieldPath arrayContainsAny:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/tsi/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:163:24: error: no visible @interface for 'FIRQuery' declares the selector 'queryWhereField:in:'
            query = [query queryWhereField:fieldName in:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/ts/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:165:24: error: no visible @interface for 'FIRQuery' declares the selector 'queryWhereFieldPath:in:'
            query = [query queryWhereFieldPath:fieldPath in:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/ts/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:764:16: warning: 'timestampsInSnapshotsEnabled' is deprecated [-Wdeprecated-declarations]
          settings.timestampsInSnapshotsEnabled = (bool)call.arguments[@"timestampsInSnapshotsEnabled"];
                   ^
    In file included from /Users/ts/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:8:
    In file included from /Users/ts/grain-platform-app/sample_app/ios/Pods/Headers/Private/Firebase/Firebase.h:31:
    In file included from /Users/ts/grain-platform-app/sample_app/ios/Pods/Headers/Private/FirebaseFirestore/FirebaseFirestore.h:25:
    /Users/ts/grain-platform-app/sample_app/ios/Pods/Headers/Private/FirebaseFirestore/FIRFirestoreSettings.h:69:20: note: 'timestampsInSnapshotsEnabled' has been explicitly marked deprecated here
        __attribute__((deprecated));
                       ^
    1 warning and 4 errors generated.

Could not build the application for the simulator.
Error launching application on iPhone 8.

昨日の夜にX-codeのアップグレード(11.3)したのを思い出す
これが原因か?
(エラーメッセージ中にもそんな感じのことが書いてある)

Why?

最近、同じように悩んでいる海外の方を発見👀
やっぱりFirestoreのpodが影響してるみたい
https://github.com/FirebaseExtended/flutterfire/issues/1562

Solution

pod update Firebase/Firestore
を実行しFirebaseのアップグレードを行った

→一発でビルドできた!!!

まとめ

Flutterの日本語記事が少ないのでちょっと書いてみました。
最新のXcodeの対応が追いついていなかったからこんなことになったのかな?
CatallinaにOSが移って間もないですしこういうエラーも多いのかな?
多分この記事はそのうち意味をなくすかな?w
podでこまめにライブラリを管理していきます

shoukitsuda0310
ブロックチェーンの勉強をしています
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした