Swift4 Day44:線上聊天功能

Alice
Alice
Aug 26, 2017 · 3 min read

日期:8/22(二)

作品:線上聊天

心得:這次學到Firebase資料存取、cocoapod應用,一次碰到雲端伺服器,運用覺得很酷,不過也因為製作時間過長沒辦法每天發文,還在想要怎麼調整。第一次實作做很慢,希望之後上手後可以速度越來越快!

利用Firebase當伺服器

點下新增其他應用程式選iOS其他就照指示做

SDK設定

  1. 把專案拉到桌面
  2. 在終端機輸入pod init
  3. 輸入open Podfile -a Xcode-beta(或是Xcode看版本)
  4. 在Podfile輸入以下pod資料然後注意platform :ios, ‘9.0’

5.輸入podfile install直到出現podfile installation complete!就好啦

打開白色的寫code(這裡面才有包含剛剛pod的內容)

匯入資料庫跟SDK會有的常見error

寫著Thread1:singal SIGABRT然後下面也沒什麼值得參考修正方案

確認自己新加入的東西在Target Membership有沒有打勾

勾完就能動了😭

加入會員SDK資料庫

記得import Firebase

記得把登入方式的email打開

在simulator上輸入之後就會傳到firebase,太好了超感動,我這個部分已經重寫了三次了QQ

部分實作影片

github:內含大量中文註解

Daily Swift

Hi, I’m Alice. :-]

)

Alice

Written by

Alice

Swift addict, Taipei|wl02722691@gmail.com

Daily Swift

Hi, I’m Alice. :-]

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade