cordova-plugin-firebase-analytics: Error code 65 for command when running via cordova cli

I get the following error when trying to use cordova run ios from the cli. If I open the project in xcode it runs just fine, but it’s more convenient to use cordova with my current build scripts.

CompileC /Users/joshua/Library/Developer/Xcode/DerivedData/Skritter-efbrufplvphvojffkmyofkuepxlu/Build/Intermediates.noindex/ArchiveIntermediates/Skritter/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/FirebaseCore.build/Objects-normal/armv7/FIRNetwork.o FirebaseCore/Firebase/Core/FIRNetwork.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(node:99132) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/joshua/Github/skritter/skritter-mobile-v3/cordova/ja/platforms/ios/cordova/build-debug.xcconfig,-workspace,Skritter.xcworkspace,-scheme,Skritter,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Skritter.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/joshua/Github/skritter/skritter-mobile-v3/cordova/ja/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/joshua/Github/skritter/skritter-mobile-v3/cordova/ja/platforms/ios/build/sharedpch,EMBEDDED_CONTENT_CONTAINS_SWIFT = YES,ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO,LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"
(node:99132) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:99132) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

It looks like it’s related to https://github.com/chemerisuk/cordova-plugin-firebase-analytics/issues/39 which is closed.

Any thoughts?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 19 (1 by maintainers)

Most upvoted comments

@newuser44 What I finally got working (sort of) is:

  • Install cordova-plugin-firebase-analytics

  • Install cordova-plugin-cocoapod-support

  • Install cordova-plugin-ios-frameworks (only needed to include the AdSupport.framework for iOS)(if you want to just use AdSupport.framework, then fork this plugin and remove the other frameworks it tries to add)

  • Add preference to iOS platform element (this may not be needed): <preference name="deployment-target" value="8.0" />

  • Make sure Cocoa Pods is installed and setup on your machine

  • Delete /platforms and /plugins folders

  • cordova prepare

    • This will finish saying 0 pods installed
  • cordova prepare

    • This will finish saying X number of pods installed
  • cd platforms/ios

  • pod install

    • For some reason the pods do not actually get installed… I gave up trying to think through this logically
  • Now build you cordova project (don’t worry if there are errors)

  • Now open .xcworkspace in platforms/ios

  • Run the code

@newuser44 The problem with that one is that you must then implement and register for push notifications. Also, that plugin is not compatible with Crashlytics, which will be required for crash reporting on September 8th.

Anybody try just the firebase I guess general plugin?
https://github.com/arnesson/cordova-plugin-firebase Sounds like that can do the same things as this one, but more analytics like crashes.