Playground in Swift won't use Firebase - xcode

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:
Cocoapods: 2.6.4
Pod: 1.0
Xcode: 7.3.1
Firebase: 3.2.0
Any help or clues here for me?

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.

Related

How to handle MISSING_PLUGIN_EXEPTION in Flutter with Firebase Core Plugin on IOS

for several days I have tried to link my Flutter app with Firebase Database. But unfortunately, whenever I want to start debugging the compiler gives back a missing plugin exemption concerning the firebase_core package. I have already seen some entries referring to this issue here on stack overflow but none of them worked for me.
I have already followed the instruction steps by the installation guide on Firebase and included the Google Service File in my Xcode project.
I already did flutter clean, deleted the pods folder and the pod file.lock file in IOS, tried to include the Firebase SDK package by using the add package option in Xcode.
In the past, the connection between my Flutter project and the Firebase Database already worked but somehow it won't work now.
I think that my issue deals with the new step in the installation process for Firebase Connection when I am asked to make use of the Firebase SDK in Xcode.
In the following I'll add some more pictures for illustration. If someone had the same/a similar issue, it would be a huge help for me.
error Message
podfile
main_dart
Xcode runner workspace including google Service
AppDelegate in Xcode
pubspec yaml

Giving me an error when I use prebuilt UI from Firebase for authentication in Xcode. No known class method for selector 'labelColor'

I am trying to use the prebuilt UI Firebase AUTH provides. When I build the project it gives me this error "No known class method for selector 'labelColor'"
Note: I have been able to connect to Firebase.
This is what the error looks like:
Xcode
This is what my podfile looks like: Podfile
Check that you are running Xcode 11. I had the same issue after updating my FirebaseUI/... pods to 8.4.0 and after some searching issue in the Github repo that it requires Xcode update.

Is PESDK compatible with React 16.2?

I am using React 16.2 and am running into issues when integrating PESDK
ERROR in ./~/photoeditorsdk/js/PhotoEditorSDK.UI.DesktopUI.Controls.Adjustments.min.js
Module not found: Error: Can't resolve 'photoeditorsdk/PhotoEditorSDK.UI.DesktopUI.Core'
When pretty much following the example from the demo repo
I also tried to clone the demo repo, and update it to React 16.2 and the latest PESDK version (4.3.0) and got the same issue
Is this compatible with React 16.2, and if not, do you have plans to support this in the near future?
The SDK is compatible with React 16.2.
The error you encounter is fixed in v4.3.1 that we released today.
Also take a look at our react demo integration athttps://github.com/imgly/pesdk-react-demo

XCode 8.2.1 error - No such module YouTubePlayer

I am using https://github.com/gilesvangruisen/Swift-YouTube-Player
First I've tried to import it manually from everywhere include dropping, copyng, embed framewordks, embedded binaries, linked frameworks, but it was unsuccessfully with error message No such module YouTubePlayer
Next I used cocoapods. Install it and run it from .xcworkspace. Then try to run it and again error message No such module YoutubePlayer
This is list tree directories after pod install
Maybe this is the solution, but I don't know where is repo and how to do the described action.
https://github.com/gilesvangruisen/Swift-YouTube-Player/issues/42
The reason why its failing with cocoapod is because the pod written is in old swift version. So, unless until we don't compile the pod successfully, we can't import that. You can change the old swift code to new using :
Xcode->Edit->Convert->To Current Swift Syntax
Also you can use the latest release and build the framework from the repo you mentioned:
https://github.com/gilesvangruisen/Swift-YouTube-Player
I downloaded the latest release and created the youTubePlayer framework and linked it to a sample app and able to import it.
Please check this link for the sample app which is having YouTubePlayer framework as well which you can use in your own project.

Alamofire Swift 2 - cannot submit for beta testing (Xcode 7 GM)

I have followed the instructions on installing the swift2 branch of Alamofire with cocoa pods. The app works well in the simulator, however, when I archive it for submission with Xcode 7 GM I receive an email with an error:
"The bundle contains an invalid implementation of Swift. The app may have been built or signed with non-compliant or pre-release tools"
This issue definitely relates to the framework as without it I am able to submit for beta testing with the same version of Xcode. I have tried turning bit code OFF in the build settings for Alamofire but it does not help.
Does anyone know how to fix this?
My podfile links only against Alamofire framework:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift-2.0'
One of the things that I found rather strange is that when I try to submit an archive I have the following screen:
Maybe this can be helpful in identifying the issue. The extra two targets are notification centre widgets. Disabling them doesn't resolve the issue. And without Alamofire I am able to submit for beta testing with both widgets attached.
Update
For those who are suggesting that "Swift 2.0 is in beta so you cannot submit" I want to clarify once more - I am trying to submit for beta testing. And YES, it is possible!
As I have indicated, I am able to submit for beta testing if I remove Alamofire and my own app is written in Swift 2.0. And if someone still thinks that "it is not possible" here is some info for you. Please read it first before posting comments or down voting question.
Update 2
This issue is still there with Xcode 7 GM...
OK, this issue is now fixed. I have tried the 2.0.1 version of Alamofire and I am able to submit with Xcode 7 GM and Bit Code turned ON for both Alamofire and my app.

Resources