Firebase database sample errors (iOS)

345 views
Skip to first unread message

David Russell

unread,
May 23, 2016, 9:30:31 AM5/23/16
to Firebase Google Group

I am hoping to get some tips to resolve the errors I am getting with CocoaPods install and Xcode compile for the IOS database example App.


$ pod install

Analyzing dependencies

Downloading dependencies

Using Bolts (1.7.0)

Using FBSDKCoreKit (4.12.0)

Using FBSDKLoginKit (4.12.0)

Using Firebase (3.2.0)

Using FirebaseAnalytics (3.2.0)

Using FirebaseAuth (3.0.2)

Using FirebaseDatabase (3.0.1)

Using FirebaseInstanceID (1.0.6)

Using FirebaseUI (0.4.0)

Using GoogleAppUtilities (1.1.1)

Using GoogleAuthUtilities (2.0.1)

Using GoogleInterchangeUtilities (1.2.1)

Using GoogleNetworkingUtilities (1.2.1)

Using GoogleSignIn (4.0.0)

Using GoogleSymbolUtilities (1.1.1)

Using GoogleUtilities (1.3.1)

Generating Pods project

Integrating client project

Sending stats

Pod installation complete! There are 3 dependencies from the Podfile and 16 total pods installed.


[!] Unable to read the license file `.../FireBase-quickstart/database/Pods/FirebaseUI/LICENSE` for the spec `FirebaseUI (0.4.0)`


If I add a license file in the Pods/FirebaseUI directory (just a copy of the Apache License) then the pod install runs without error, but the Xcode build still fails to find the FirebaseUI module:


FireBase-quickstart/database/DatabaseExampleSwift/PostDataSource.swift:18:8: error: no such module 'FirebaseUI'

import FirebaseUI


Xcode generates the same error if I try to build the Obj-C target.



My Podfile is unchanged from the version downloaded from GitHub:


# DatabaseExample


use_frameworks!

platform :ios, '7.0'

pod 'Firebase/Database'

pod 'Firebase/Auth'

pod 'FirebaseUI'


target 'DatabaseExample' do

end

target 'DatabaseExampleSwift' do

end

target 'DatabaseExampleTests' do

end


Thanks in advance for any suggestions.


Mike Mcdonald

unread,
May 23, 2016, 10:51:03 AM5/23/16
to Firebase Google Group
Hey there,

Sorry about this one :(

TL;DR: s/FirebaseUI/FirebaseDatabaseUI, when we were rebuilding FirebaseUI for the new clients, I changed the module from FirebaseUI to FirebaseDatabaseUI to accommodate the AuthUI in a better flow, and ended up breaking compatibility with the samples. I'm working on fixing this (by adding a FirebaseUI module), but for now, if you just use import FirebaseDatabaseUI, everything will work.

Thanks and sorry again,
--Mike 

David Russell

unread,
May 24, 2016, 10:28:20 AM5/24/16
to Firebase Google Group
That seems to do the trick.  Thanks for the quick, easy fix.
Dave
Reply all
Reply to author
Forward
0 new messages