Tag: firebase swift2

未find框架GoogleToolboxForMac

在通过“pod更新”更新我的Firebase之后,我得到如下错误: ld: warning: directory not found for option '-F/Users/bennysantoso/Library/Developer/Xcode/DerivedData/FCM-atfcxuircoryufazlomgwfgmvaqm/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac' ld: framework not found GoogleToolboxForMac clang: error: linker command failed with exit code 1 (use -v to see invocation) 这里我的Podfile: # Uncomment this line to define a global platform for your project # platform :ios, '9.0' pod 'Firebase/Core' pod 'Firebase/Messaging' target 'BB' do # Comment this […]

Swift2从Firebase中检索图片

我正在尝试从Firebase读取/显示图片。 我首先编码图像,然后将这个编码的string发布到Firebase。 这运行良好。 当我尝试解码来自Firebase的编码string并将其转换为图像时,我得到一个零值exception。 这就是我将图像保存到Firebase的方式 var base64String: NSString! func imagePickerController(picker: UIImagePickerController, didFinishPickingImage image: UIImage, editingInfo: [String : AnyObject]?) { self.dismissViewControllerAnimated(true, completion: nil) imageToPost.image = image var uploadImage = image as! UIImage var imageData = UIImagePNGRepresentation(uploadImage)! self.base64String = imageData.base64EncodedStringWithOptions(NSDataBase64EncodingOptions.Encoding64CharacterLineLength) let ref = Firebase(url: "https://XXX.firebaseio.com") var quoteString = ["string": self.base64String] var usersRef = ref.childByAppendingPath("goalImages") var users = […]