==[[Firebase]]==
===プロジェクトに[[Firebase]]を統合===
----
*プロジェクトフォルダで以下を実行しXcodeで
*ios
<pre>
$ open ios/Runner.xcworkspace
</pre>
*macos
<pre>
$ open macos/Runner.xcworkspace
</pre>
*開発者IDを登録
[[File:0512_ios_bundle_id2.png|600px]]
[[File:Flutter_xcode_sign.png|600px]]
*[[Firebase]] にバンドルIDを登録
**cd ios
**pod init
*https://developers.google.com/identity/sign-in/ios/start-integrating
[[File:Flutter_pod_google_signin.png|600px]]
*iPhoneでデベロッパーを信頼
**「設定」>「一般」>「プロファイル」または「プロファイルとデバイス管理」の順にタップします。 「エンタープライズ App」見出しの下に、該当する開発元のプロファイルが表示されます。 「エンタープライズ App」見出しの下で開発元のプロファイルの名前をタップし、その開発元を信頼するように設定
*FirebaseをiOSに追加する
**https://firebase.google.com/docs/ios/setup?hl=ja
[[File:ios_firebase.png|600px]]
[[File:firebase_sdk.png|600px]]
[[File:google_service_info_plist.png|600px]]
*ビルドエラー
diff: /../Podfile.lock: No such file or directory
diff: Manifest.lock: No such file or directory error:
The sandbox is not in sync with the Podfile.lock. Run ‘pod install’ or update your CocoaPods installation.`
**以下xcodeではなく、コマンドで成功
pos update
pod install
flutter build ios
flutter run
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 4 total pods installed.
[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).
delhi:ios hirotoyagi$
===[[FlutterFire]]===
----