|
3 | 3 | Simplify your iOS development, grow your user base, and monetize more |
4 | 4 | effectively with Firebase services. |
5 | 5 |
|
6 | | -Much more information can be found at [https://firebase.google.com](https://firebase.google.com). |
7 | | - |
8 | | -## Install a Firebase SDK using CocoaPods |
9 | | - |
10 | | -Firebase distributes several iOS specific APIs and SDKs via CocoaPods. |
11 | | -You can install the CocoaPods tool on OS X by running the following command from |
12 | | -the terminal. Detailed information is available in the [Getting Started |
13 | | -guide](https://guides.cocoapods.org/using/getting-started.html#getting-started). |
14 | | - |
15 | | -``` |
16 | | -$ sudo gem install cocoapods |
17 | | -``` |
18 | | - |
19 | | -## Add a Firebase SDK to your iOS app |
20 | | - |
21 | | -CocoaPods is used to install and manage dependencies in existing Xcode projects. |
22 | | - |
23 | | -1. Create an Xcode project, and save it to your local machine. |
24 | | -2. Create a file named `Podfile` in your project directory. This file defines |
25 | | - your project's dependencies, and is commonly referred to as a Podspec. |
26 | | -3. Open `Podfile`, and add your dependencies. A simple Podspec is shown here: |
27 | | - |
28 | | - ``` |
29 | | - platform :ios, '8.0' |
30 | | - pod 'Firebase' |
31 | | - ``` |
32 | | -
|
33 | | -4. Save the file. |
34 | | -
|
35 | | -5. Open a terminal and `cd` to the directory containing the Podfile. |
36 | | -
|
37 | | - ``` |
38 | | - $ cd <path-to-project>/project/ |
39 | | - ``` |
40 | | -
|
41 | | -6. Run the `pod install` command. This will install the SDKs specified in the |
42 | | - Podspec, along with any dependencies they may have. |
43 | | -
|
44 | | - ``` |
45 | | - $ pod install |
46 | | - ``` |
47 | | -
|
48 | | -7. Open your app's `.xcworkspace` file to launch Xcode. Use this file for all |
49 | | - development on your app. |
50 | | -
|
51 | | -8. You can also install other Firebase SDKs by adding the subspecs in the |
52 | | - Podfile. |
53 | | -
|
54 | | - ``` |
55 | | - pod 'Firebase/AdMob' |
56 | | - pod 'Firebase/Analytics' |
57 | | - pod 'Firebase/Auth' |
58 | | - pod 'Firebase/Database' |
59 | | - pod 'Firebase/DynamicLinks' |
60 | | - pod 'Firebase/Firestore' |
61 | | - pod 'Firebase/Functions' |
62 | | - pod 'Firebase/InAppMessaging' |
63 | | - pod 'Firebase/Messaging' |
64 | | - pod 'Firebase/MLCommon' |
65 | | - pod 'Firebase/MLModelInterpreter' |
66 | | - pod 'Firebase/MLNLLanguageID' |
67 | | - pod 'Firebase/MLNLSmartReply' |
68 | | - pod 'Firebase/MLNLTranslate' |
69 | | - pod 'Firebase/MLNaturalLanguage' |
70 | | - pod 'Firebase/MLVision' |
71 | | - pod 'Firebase/MLVisionAutoML' |
72 | | - pod 'Firebase/MLVisionBarcodeModel' |
73 | | - pod 'Firebase/MLVisionFaceModel' |
74 | | - pod 'Firebase/MLVisionLabelModel' |
75 | | - pod 'Firebase/MLVisionObjectDetection' |
76 | | - pod 'Firebase/MLVisionTextModel' |
77 | | - pod 'Firebase/Performance' |
78 | | - pod 'Firebase/RemoteConfig' |
79 | | - pod 'Firebase/Storage' |
80 | | - ``` |
| 6 | +Much more information can be found at |
| 7 | +[https://firebase.google.com/docs/ios/setup](https://firebase.google.com/docs/ios/setup). |
0 commit comments