質問するログイン新規登録

質問編集履歴

1

ライブラリの導入方法について追記

2021/04/05 23:23

投稿

sszkks
sszkks

スコア15

title CHANGED
File without changes
body CHANGED
@@ -31,6 +31,41 @@
31
31
  }
32
32
  ```
33
33
 
34
+ # ライブラリの導入方法について
35
+
36
+ ライブラリはcocoapodsを用いて導入しました。
37
+ Podfile内の記載は下記の通りです。
38
+
39
+ ```
40
+ # Uncomment the next line to define a global platform for your project
41
+ # platform :ios, '9.0'
42
+
43
+ target 'XX' do
44
+ # Comment the next line if you don't want to use dynamic frameworks
45
+ use_frameworks!
46
+
47
+ # Pods for PushSample
48
+ # add the Firebase pod for Google Analytics
49
+ pod 'Firebase/Analytics'
50
+ # add pods for any other desired Firebase products
51
+ # https://firebase.google.com/docs/ios/setup#available-pods
52
+ # Add the pod for Firebase Cloud Messaging
53
+ pod 'Firebase/Messaging'
54
+
55
+ target 'XXTests' do
56
+ inherit! :search_paths
57
+ # Pods for testing
58
+ end
59
+
60
+ target 'XXUITests' do
61
+ # Pods for testing
62
+ end
63
+
64
+ end
65
+
66
+ ```
67
+
68
+
34
69
  # 調べたこと
35
70
  importに不足がないか確認しましたが、参考サイトと同じように下記をimportしているため差分は見受けられませんでした。
36
71
  ```swift