Normally, using CocoaPods, I just do Pod init to create the podfile. Why didnāt you do that, and why do you not include use_frameworks! in your podfile?
Confusedā¦
Nope. No issues apart from Xcode 9 beta 6 not copying over the plist file from my download location (see thread in that topic for video 3)
I am wondering then, why I my podfile which looks like this works. Notice I have not commented out use_frameworks!
Even Google recommends that you use pod init to create the podfile. I just edit it using Xcode.
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'Grocr' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Grocr
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
end
After installing Firebase and adding āimport Firebaseā to GroceryItem.swift, I had to update DatabaseReference to FIRDatabaseReference and DataSnapshot to FIRDataSnapshot to get it to compile/work.
Didnāt have to do this from the Final project so I must have missed something along the way.
Resolved - I had an old version of Firebase for some reason.
Yep, verified that when going through the tutorial, the Firebase version that gets installed is v3.6.0. The final project for āPart 2ā uses Firebase 4.0.3
Not sure why CocoaPods is picking an old versionā¦
Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.
So, if you do the āpod installā step, and you still have the 2 build errors, run pod update
from the terminal. This will update your pod repo on your system, and also update the Firebase versions to what they should be.
@vegetarianzombie Hey Brian, I have a question: Iām trying to install this for iOS 12, so that is the only change I make in the textEditor (vim) [platform :ios, ā12.0ā].
But I still get an error that somehow indicates the word āendā and the front-slashes [pod āFirebase**/**ā¦ā are erroneous!
I cannot find another tutorial to fix this, so how do I go about this?