selker
selker

Reputation: 31

Playground in Swift won't use Firebase

As u probably all might know Firebase made a Version jump and I am trying to get my setup working with the Xcode Playground.

There is a reference how to implement Firebase in Playground with older versions of Cocoapods and Ruby but that won't really work for me swift playground for experimenting with firebase. Even though Firebase implementation in the Project itself works fine and i can import my Firebase it won't work on a Playground any more.

Does somebody know how to add a working setup with a Playground and Firebase?

Software in use:

Any help or clues here for me?

Upvotes: 3

Views: 978

Answers (1)

MegaChan
MegaChan

Reputation: 430

I created a Framework and then imported into my Playground. Make sure you properly target the framework in the Podfile:

target 'YourApp' do
    pod 'Firebase/Core'
    target 'YourAppFramework' do
    end
end

Once you build the framework then import:

import AppFramework
import FirebaseCore

Most things will work, except for Auth related functions.

Upvotes: 1

Related Questions