Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS startup crash after updating to 7.0.0 #221

Closed
Birowsky opened this issue Nov 12, 2019 · 10 comments
Closed

iOS startup crash after updating to 7.0.0 #221

Birowsky opened this issue Nov 12, 2019 · 10 comments
Labels
bug Something isn't working properly ios relates to iOS platform runtime issue An issue related to app runtime

Comments

@Birowsky
Copy link
Sponsor

Birowsky commented Nov 12, 2019

Bug report

Current behavior:
Ios app crashes on startup. This seems to capture the issue nicely. More specifically, the platforms/ios/{app name}/Resources/GoogleService-Info.plist is the one that gets screwed up.

Rolling back to v6.0.1 fixed it.

Expected behavior:

App doesn't crash.

Steps to reproduce:

  • Prepare the fresh clone of a project with v7.0.0 of this plugin with cordova prepare.
  • Start the app.
  • Expect it to crash on startup.

Environment information

  • Cordova CLI version
    • 9.0.0 (cordova-lib@9.0.1)
  • Cordova platform version
    • ios 5.0.1
  • Plugins & versions installed in project (including this plugin)
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-appminimize 1.0.1 "AppMinimize"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-facebook4 6.2.0 "Facebook Connect"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-firebasex 6.1.0 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-googleplus 8.2.0 "Google SignIn"
cordova-plugin-headercolor 1.0 "HeaderColor"
cordova-plugin-inappbrowser 3.1.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
cordova-plugin-local-notification 0.9.0-beta.3 "LocalNotification"
cordova-plugin-localization-strings 3.2.1 "Localization"
cordova-plugin-secure-storage 3.0.2 "SecureStorage"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-x-socialsharing 5.6.2 "SocialSharing"
cordova.plugins.diagnostic 5.0.1 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
  • Dev machine OS and version, e.g.
    • OSX
ProductName:    Mac OS X
ProductVersion: 10.15.1
BuildVersion:   19B88

Runtime issue

  • Device details
    • any iPhone

iOS build issue:

  • Node JS version
    • 10.17.0
  • XCode version
    • Version 11.2.1 (11B53)


Other information:

Issue doesn't happen if project is being prepared with cordova platform add ios.

@driiftkiing
Copy link

driiftkiing commented Nov 13, 2019

I'm getting following error after upgrading:

The following build commands failed:
        CompileC /Users/USER_NAME/Library/Developer/Xcode/DerivedData/CORDOVA_PROJECT-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/CORDOVA_PROJECT/IntermediateBuildFilesPath/CORDOVA_PROJECT.build/Debug-iphoneos/CORDOVA_PROJECT.build/Objects-normal/armv7/FirebasePlugin.o /Users/USER_NAME/projects/angular-app/cordova/platforms/ios/CORDOVA_PROJECT/Plugins/cordova-plugin-firebasex/FirebasePlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler



EDIT: Here is the full error:

CompileC /Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/Objects-normal/armv7/FirebasePlugin.o /Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/ANGULAR_APP/Plugins/cordova-plugin-firebasex/FirebasePlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'ANGULAR_APP' from project 'ANGULAR_APP')
    cd /Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target armv7-apple-ios10 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/USERNAME/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/USERNAME/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DCOCOAPODS=1 -DDEBUG=1 -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -DDEBUG=1 -DPB_FIELD_32BIT=1 -DPB_NO_PACKED_STRUCTS=1 -DPB_ENABLE_MALLOC=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -iquote /Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/ANGULAR_APP-generated-files.hmap -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/ANGULAR_APP-own-target-headers.hmap -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/ANGULAR_APP-all-target-headers.hmap -iquote /Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/ANGULAR_APP-project-headers.hmap -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/build/device/include -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/InstallationBuildProductsLocation/Applications/usr/local/lib/include -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/UninstalledProducts/include -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/build/device -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseABTesting/FirebaseABTesting.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseAuth/FirebaseAuth.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseCore/FirebaseCore.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseInstanceID/FirebaseInstanceID.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseMessaging/FirebaseMessaging.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseRemoteConfig/FirebaseRemoteConfig.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GTMSessionFetcher/GTMSessionFetcher.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GoogleDataTransport/GoogleDataTransport.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GoogleToolboxForMac/GoogleToolboxForMac.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/Protobuf/protobuf.framework/Headers -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/nanopb/nanopb.framework/Headers -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Headers/Public -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Headers/Public/Firebase -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Headers/Public/FirebaseAnalyticsInterop -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Headers/Public/FirebaseAuthInterop -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Headers/Public/FirebaseCoreDiagnosticsInterop -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/InstallationBuildProductsLocation/Applications/usr/local/lib/include -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/UninstalledProducts/include -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/build/device -I/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Firebase/CoreOnly/Sources -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/DerivedSources-normal/armv7 -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/DerivedSources/armv7 -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/DerivedSources -F/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/build/device -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseABTesting -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseAuth -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseCore -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseCoreDiagnostics -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseInstanceID -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseMessaging -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/FirebaseRemoteConfig -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GTMSessionFetcher -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GoogleDataTransport -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GoogleDataTransportCCTSupport -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GoogleToolboxForMac -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/GoogleUtilities -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/Protobuf -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/BuildProductsPath/Debug-iphoneos/nanopb -F/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Crashlytics/iOS -F/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Fabric/iOS -F/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/FirebasePerformance/Frameworks -F/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/GoogleAppMeasurement/Frameworks -include /Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/build/sharedpch/SharedPrecompiledHeaders/3602307220018750263/ANGULAR_APP-Prefix.pch -MMD -MT dependencies -MF /Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/Objects-normal/armv7/FirebasePlugin.d --serialize-diagnostics /Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/Objects-normal/armv7/FirebasePlugin.dia -c /Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/ANGULAR_APP/Plugins/cordova-plugin-firebasex/FirebasePlugin.m -o /Users/USERNAME/Library/Developer/Xcode/DerivedData/ANGULAR_APP-ecjhahrgcwyqxhbmnhyigyyqbxof/Build/Intermediates.noindex/ArchiveIntermediates/ANGULAR_APP/IntermediateBuildFilesPath/ANGULAR_APP.build/Debug-iphoneos/ANGULAR_APP.build/Objects-normal/armv7/FirebasePlugin.o
While building module 'Firebase' imported from /Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/ANGULAR_APP/Plugins/cordova-plugin-firebasex/FirebasePlugin.m:4:
In file included from <module-includes>:1:
/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/Pods/Headers/Public/Firebase/Firebase.h:15:9: fatal error: 'FirebaseCore/FirebaseCore.h' file not found
#import <FirebaseCore/FirebaseCore.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
/Users/USERNAME/PROJECTS/ANGULAR_APP/cordova/platforms/ios/ANGULAR_APP/Plugins/cordova-plugin-firebasex/FirebasePlugin.m:4:9: fatal error: could not build module 'Firebase'
#import "Firebase.h"
 ~~~~~~~^~~~~~~~~~~~
2 errors generated.

@dpa99c dpa99c added investigate Issue requires investigation ios relates to iOS platform runtime issue An issue related to app runtime labels Nov 13, 2019
@asimon91
Copy link

It's happening to me too. I've created an XCode project from an IONIC app that uses this plugin, and it's not compiling because it cannot find the "Firebase.h" file.

'Firebase.h' file not found AppDelegate + FirebasePlugin.m

@kelpie278
Copy link

This was happening to me due to an incompatibility cordova-plugin-googleplus which I've seen you have on your config, I was capable of sorting it setting up the pods version manually, which is suboptimal but it works.

@dpa99c dpa99c closed this as completed in 975400f Nov 13, 2019
@dpa99c dpa99c added bug Something isn't working properly ready for release Something has been implemented and is awaiting release to npm and removed investigate Issue requires investigation ready for release Something has been implemented and is awaiting release to npm labels Nov 13, 2019
@dayaki
Copy link

dayaki commented Nov 14, 2019

@asimon91 @driiftkiing Please how are you able to solve this? Am having exact problem and v7.0.1 didn't solve it for me.

@driiftkiing
Copy link

@dayaki: In my case I had to install the plugin cordova-plugin-ionic-webview as last. Otherwise this plugin gets f*cked up.

Also running pod install inside a after_platform_add hook, but I dont think this will solve the problem.

pod repo update
pod install --project-directory='./platforms/ios/'

@DCGoD
Copy link

DCGoD commented Nov 18, 2019

How does this issue keep arising? This is the same issue I've battled for years and it makes integrating Firebase into an ionic app using continuous integration, a total nightmare. Builds locally, doesn't from CI.

@markterrill
Copy link

How are folk successfully building?

@kelpie278 what files did you specify a pod version, and what did you set? I'm also using googleplus (git)

@markterrill
Copy link

markterrill commented Dec 12, 2019

Ok. making progress on the missing firebase.h

The podfile was missing Firebase libraries:

# DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://github.com/CocoaPods/Specs.git'
source 'https://cdn.cocoapods.org/'
platform :ios, '9.0'
use_frameworks!
target 'MyApp' do
	project 'MyApp.xcodeproj'
	pod 'GoogleSignIn', '4.4.0'
	pod 'GoogleUtilities', '6.2.3'
	pod 'Firebase/Core', '6.11.0'
	pod 'Firebase/Auth', '6.11.0'
	pod 'Firebase/Messaging', '6.11.0'
	pod 'Firebase/Performance', '6.11.0'
	pod 'Firebase/RemoteConfig', '6.11.0'
	pod 'Fabric', '1.10.2'
	pod 'Crashlytics', '3.14.0'
end

I ignored the warning about auto generation and simply copy/pasted the firebase entries..

Then make sure to cd platforms/ios; pod install; so it'll install the libraries.

Compiling again showed errors with "'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99."

So using Xcode i clicked on each of the pods and manually updated the ios target version to 10. (as I'm setting my minimum build target to be 10)

@rip3rs
Copy link

rip3rs commented Feb 27, 2020

I have this issue to. dont't get what I did, because it was working Oo

@Nogatz
Copy link

Nogatz commented Jun 10, 2020

Someone make this work?

I have this problem too

+1

tryed:
pod install, update
delete pod references on build phase and build again
re-add the plugin
re-add the platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly ios relates to iOS platform runtime issue An issue related to app runtime
Projects
None yet
Development

No branches or pull requests

10 participants