Closed eduardoewgo closed 1 year ago
cc: @phiferd
It took about 8 hours, but we managed to get it to work.
After adding ios as platform, add the below to the PodFile. Make sure to run pod install
. You might get away with targeting lower ios or using older firebase versions, however don't go too low as Crashlitics does not exist for e.g. 6.13 (not sure since when it is available).
Using the below, we were able to build the project. However... Sending a notification from the Firebase website (the build in tool voor test messages) was not received on the iPhone (no problems on Android). Perhaps this interface doesn't work for iPhones? i have to read up on that...
platform :ios, '12.1'
use_frameworks!
target 'FirebaseTest' do
pod 'GoogleSignIn', '5.0.0'
pod 'Firebase/Core', '6.34.0'
pod 'Firebase'
pod 'Firebase/Firestore', '6.34.0'
pod 'Firebase/Auth', '6.34.0'
pod 'Firebase/Messaging', '6.34.0'
pod 'Firebase/Performance', '6.34.0'
pod 'Firebase/RemoteConfig', '6.34.0'
pod 'Firebase/Crashlytics', '6.34.0'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
Edit: 2021-03-10 I did not uploaded the .p8 certificate file to Firebase. After uploading this file all works as expected.
Environment
cordova 10.0.0
node v12.20.2
pod 1.10.1
"cordova-plugin-firebasex": "^11.0.3"
"cordova-ios": "^6.2.0",
code 12.4
Script
Output running
cordova build ios
Output trying to build through xcode
Pods
I also tried going into the plugins folder and manually running
pod repo update && pod install
and justpod install
, as suggested in the readme.