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.

ArgumentError - Illformed requirement `"$IOS_FIREBASE_ANALYTICS_VERSION"` for ios Capacitor ionic 5

See original GitHub issue

Bug Report

Capacitor Version


Latest Dependencies:

  @capacitor/cli: 2.4.0
  @capacitor/core: 2.4.0
  @capacitor/android: 2.4.0
  @capacitor/electron: 2.4.0
  @capacitor/ios: 2.4.0

Installed Dependencies:

  @capacitor/cli 2.4.0
  @capacitor/android 2.4.0
  @capacitor/core 2.4.0
  @capacitor/ios 2.4.0
  @capacitor/electron not installed

Platform(s)

Ios

Current Behavior

After updating the pods Step 1: update the pods Step 2: ionic build this command works Step 3: npx cap sync ios shows the error

Expected Behavior

Code Reproduction

Other Technical Details

npm --version output: 6.4.1

node --version output: 10.13.0

pod --version output (iOS issues only):1.10.0.beta.2

Additional Context

ArgumentError - Illformed requirement "$IOS_FIREBASE_ANALYTICS_VERSION" /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/requirement.rb:63:in parse' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/requirement.rb:88:in block in initialize’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/requirement.rb:88:in map!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/requirement.rb:88:in initialize’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/requirement.rb:34:in new' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/requirement.rb:34:in create’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/dependency.rb:101:in initialize' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/specification/consumer.rb:223:in new’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/specification/consumer.rb:223:in block in dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/specification/consumer.rb:222:in each’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/specification/consumer.rb:222:in map' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/specification/consumer.rb:222:in dependencies’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/specification.rb:403:in block in dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/specification.rb:402:in map’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.0.beta.2/lib/cocoapods-core/specification.rb:402:in dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/validator.rb:44:in initialize’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/external_sources/abstract_external_source.rb:201:in new' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/external_sources/abstract_external_source.rb:201:in validator_for_podspec’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/external_sources/abstract_external_source.rb:186:in validate_podspec' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/external_sources/abstract_external_source.rb:178:in store_podspec’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/external_sources/path_source.rb:17:in block in fetch' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/user_interface.rb:64:in section’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/external_sources/path_source.rb:11:in fetch' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer/analyzer.rb:989:in fetch_external_source’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer/analyzer.rb:968:in block (2 levels) in fetch_external_sources' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer/analyzer.rb:967:in each’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer/analyzer.rb:967:in block in fetch_external_sources' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/user_interface.rb:64:in section’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer/analyzer.rb:966:in fetch_external_sources' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer/analyzer.rb:117:in analyze’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer.rb:414:in analyze' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer.rb:239:in block in resolve_dependencies’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/user_interface.rb:64:in section' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer.rb:238:in resolve_dependencies’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/installer.rb:160:in install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/command/install.rb:52:in run’ /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/lib/cocoapods/command.rb:52:in run’ /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0.beta.2/bin/pod:55:in <top (required)>' /usr/local/bin/pod:23:in load’ /usr/local/bin/pod:23:in `<main>’

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
jcesarmobilecommented, Sep 8, 2020

Just because there is a capacitor plugin doesn’t mean this shouldn’t be fixed. The problem is the CLI is not replacing the IOS_FIREBASE_ANALYTICS_VERSION variable with the default value and causing pod install to fail. This can affect other plugins that might not have an alternative Capacitor plugin

1reaction
haikyuucommented, Oct 23, 2020

Note that you need to update @capacitor/cli to 2.4.1.

Thanks @jcesarmobile

Read more comments on GitHub >

github_iconTop Results From Across the Web

Capacitor Firebase analytics fails iOS - Ionic Forum
Trying to build iOS of my app that “should” use firebase ... ArgumentError - Illformed requirement `"$IOS_FIREBASE_ANALYTICS_VERSION".
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 >
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 >
Updating to 3.0 | Capacitor Documentation
Guide for updating Capacitor from v2 to v3 in your app.
Read more >
Problem with a new version of IOS - Illformed requirement ...
Report. What did you do? Run capacitor sync ios" generate a new version of ios pod install. What did you expect to happen?...
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