Cordova - ArgumentError - Illformed requirement `"$IOS_FIREBASE_ANALYTICS_VERSION"`
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Reqven @geeksilva97 upgrade your
cordova-ios
version to 6.0.0 at least.This happened to me too. Try to clean all and exec the command again. Something like:
rm -rf platforms plugins www node_modules
npm i
ionic cordova plugin add cordova-plugin-firebase-analytics --variable IOS_FIREBASE_ANALYTICS_VERSION="~> 6.31.0"
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