NewGen

2019-03-03 ios with google firebase basic 1 본문

IOS

2019-03-03 ios with google firebase basic 1

Deep Learning 2019. 3. 6. 14:11



2019-03-03 ios with google firebase basic 1


  1. go to : https://console.firebase.google.com

  2. select ios (Just Click IOS Icon)

  3. Add app

    1. write app name.

    2. input Bundle ID (This is in Xcode)


4. Go to Step 2

5. Go to cocoaPods : https://cocoapods.org



6.  Open terminal and install cocoaPods



7. You can see gems installed message on terminal.


8. Go to xcode project folder and type ‘pod init’

and then you can see “Podfile” in the directory.




9.open “Podfile” with TextEdit. and add and save.

pod 'Firebase/Core'

 pod 'Firebase/Database'




10. type ‘pod install’ in the directory.





11. check the project directory.


12. download “GoogleService-Info.plist” from the site


13. add the “GoogleService-Info.plist” file to xcode.(Drag to xcode)



14. add file with options


15 . to the wbsite , Next Click, and add initial code



16. If you got error like this : “Could not build Objective-C module 'Firebase'

Follow this procedure

  1. Quit Xcode.

  2. Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData

  3. Delete ProjectName.xcworkspace

  4. Delete Podfile.lock file and Pods folder

  5. Run pod install.

  6. open ProjectName.xcworkspace

  7. check pods folder in your project tree


17. Build Project and Check communicate with google firebase web site check step.


That is basic prepare for firebase app.










Comments