question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cordova - ArgumentError - Illformed requirement `"$IOS_FIREBASE_ANALYTICS_VERSION"`

See original GitHub issue

I know there has been a few other issues about the same problem with different variable names in the past, but it doesn’t work for me since I updated the plugin to the latest version.

I’m using cordova@9.0.0 and cordova-plugin-firebase-analytics@4.4.1.

The generated PodFile and pods.json contain the raw string “$IOS_FIREBASE_ANALYTICS_VERSION” instead of its substituted value.

# DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://cdn.cocoapods.org/'
platform :ios, '10.0'

target 'App' do
	project 'App.xcodeproj'
	pod 'Firebase/Analytics', '$IOS_FIREBASE_ANALYTICS_VERSION'
end

Running ionic cordova platform add ios --verbose fails with

ArgumentError - Illformed requirement `"$IOS_FIREBASE_ANALYTICS_VERSION"`
...
Failed to install 'cordova-plugin-firebase-analytics': Error: pod: Command failed with exit code 1

No issues so far when adding the android platform. Any idea ? Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
chemerisukcommented, Sep 14, 2020

@Reqven @geeksilva97 upgrade your cordova-ios version to 6.0.0 at least.

0reactions
geeksilva97commented, Sep 12, 2020

ionic cordova plugin add cordova-plugin-firebase-analytics --variable IOS_FIREBASE_ANALYTICS_VERSION=“~> 6.31.0”

"cordova-plugin-firebase-analytics": {
  "IOS_FIREBASE_ANALYTICS_VERSION": "~> 6.31.0"
}

I already tried this exact command, and even with the variable being added into the packages.json, still doesn’t work. The variable is still not being replaced. I have no idea why it would work fine for Android and not for iOS.

This happened to me too. Try to clean all and exec the command again. Something like:

  1. rm -rf platforms plugins www node_modules
  2. npm i
  3. ionic cordova plugin add cordova-plugin-firebase-analytics --variable IOS_FIREBASE_ANALYTICS_VERSION="~> 6.31.0"
  4. ionic cordova prepare ios.

Alternatively you can do the changes that ai suggested earlier or install from my repo using ionic cordova plugin add https://github.com/geeksilva97/cordova-plugin-firebase-analytics

Read more comments on GitHub >

github_iconTop Results From Across the Web

Variable names for a Cordova plugin on a Capacitor project
When I do the 'ionic cap sync ios' step, I get this error: ArgumentError - Illformed requirement "$FACEBOOK_IOS_SDK_VERSION" . I have tried to ......
Read more >
POD Install issue - ArgumentError - Illformed requirement ...
I am trying to deploy to Xcode and compile an iOS app. I keep getting this error everytime i try doing 'pod install'....
Read more >
CocoaPods Error Illformed requirement ... - Ionic Forum
When I try to install the pods by “pods install” I keep getting the following error: Illformed requirement "$IOS_FIREBASE_AUTH_VERSION".
Read more >
I am getting error in cocoapod (on mac) while practising xcode ...
ArgumentError - Illformed requirement `"->0.1"`. /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/requirement.rb:63:in `parse'.
Read more >
Illformed requirement $IOS_FIREBASE_POD_VERSION
Illformed requirement $IOS_FIREBASE_POD_VERSION ... Product -> Clean Build Folder after new Cordova plugins installed [capacitor] # Requires ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found