我剛剛更新到Swift 3.0語法和XCode 8.0。 我在更新後重新獲得所有內容時遇到了一些問題,但有一件事我無法修復,那就是當向數據庫寫入數據(特別是圖像)時,出現以下錯誤: Terminating app due to uncaught exception 'InvalidFirebaseData', reason: '(setValue:) Cannot store object of
所示。這是我的項目生成級代碼 // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
我的應用程序具有正常的驗證代碼,代碼在模擬器上正常工作。一旦在設備上進行測試,它甚至不會啓動。以下是Facebook登錄的片段,Twitter或電子郵件/密碼登錄也是如此。 if let fbLoginResult : FBSDKLoginManagerLoginResult = result {
if (fbLoginResult.grantedPermissions.contai
使用以下Firebase電子郵件身份驗證代碼,您如何知道身份驗證是否成功? firebase.auth().signInWithEmailAndPassword(email, password).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var er