|
|
| (同じ利用者による、間の1版が非表示) |
| 1行目: |
1行目: |
| ==Firebaseとは==
| | [[ios/swift/外部ライブラリ/Firebase/analytics]] |
| googleが2016にリニューアルしたモバイル向けanalytics
| |
| | |
| 公式:https://firebase.google.com/docs/ios/setup
| |
| | |
| ==インストール==
| |
| $ vi Podfile
| |
| platform :ios, '9.0'
| |
| target 'Helloworld' do
| |
| use_frameworks!
| |
| pod 'Firebase'
| |
| end
| |
| $ pod install
| |
| | |
| ==設定リストファイル取得==
| |
| #https://firebase.google.com
| |
| #アプリを追加/iosを選択
| |
| #GoogleService-Info.plistのダウンロード
| |
| #以下コードを追加
| |
| -AppDelegate.swift
| |
| import UIKit
| |
| import Firebase // 追加
| |
| @UIApplicationMain
| |
| class AppDelegate: UIResponder, UIApplicationDelegate {
| |
| var window: UIWindow?
| |
| var navigationController: UINavigationController!
| |
| func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
| |
| FIRApp.configure() // 追加
| |
| return true
| |
| }
| |
2019年6月12日 (水) 08:52時点における最新版