In order to download images or any files from the Firebase storage using URLSession dataTask you will have to get the download URL using Firebase 3 SDK method downloadURLWithCompletion.
We are all excited with the release of Xcode 8 and Swift 3. But upgrading our projects most of the time turns into a headache. And Firebase did well and really was an exception not to break. But still there were some outputs in the console that are very annoying. At first you might think that these are the errors but not after a close examination.
With the release of Swift 3 many changes have come to the language. Apple has updated their core frameworks as well. For example Foundation framework has gone through great changes. Before Swift 3 we used NSURLSession and NSJSONSerialization to reach a web service like REST API, download JSON and convert it to a readable format.
This short article is a follow up to Getting started with CocoaPods - Update Ruby Version and Install CocoaPods on Mac OS X 10.11 El Capitan. In the previous article we resolved problem with Ruby version and then installed CocoaPods. Now we’ll look at using CocoaPods to add Firebase SDK to your Xcode project and start using this amazing product by Google.
No matter what kind of app you’re creating, you’re likely to use code from other developers in the form of frameworks and libraries. CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. The latest version of CocoaPods will require a newer version of Ruby. In order to update Ruby and overcome new security measures we will need to install Homebrew, a package manager for OS X.
Recently I developed a simple application that is retrieving data from a URL using NSURLSession, parses JSON and displays a list of popular movies in the CollectionView. As far as, with the release of iOS 9 and Xcode 7, Apple made testing on devices available without the need to be registered in the Apple Developer Program, I decided to run my application on my iPhone 6S.