Closed shahdeep1989 closed 1 year ago
Plugin version: Latest
This meaningless in the future for others stumbling here.
Post the EXACT version.
@christocracy Plugin version: 4.8.0
pod --version 1.11.3
Have you investigated your warnings?
Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
I'm on a iMac Pro (intel), MacOS 12.4
$ ruby -v
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]
I'm quite experienced with Ruby.
undefined method prepend' for []:Array (NoMethodError)
Ok, so Array
says there's no method prepend
. Let's jump into irb
$ irb
irb(main):001:0> ["foo", "bar"].prepend("first")
=> ["first", "foo", "bar"]
2.6.8
says that Array
does have a method prepend
.2.6.6
(/Users/deepshah/.rvm/gems/ruby-2.6.6
) says there is no method prepend
.I suggest you use your rvm
to update your ruby.
Thank you @christocracy
ruby -v
ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-darwin20]
It is working with same ruby version.
Below command fixed my issue. Previously when I tried that was not working.
sudo gem pristine ffi --version 1.15.5
When I tried to install plugin it was giving error for iOS. I have added plugin entry on config.xml and tried to add iOS platform. And that provided below error.
Your Environment
Plugin version: Latest
Platform: iOS
OS version: MacOS Big Sur Version: 11.6.5
Device manufacturer / model: MacBookPro
Cordova version (
cordova -v
): 11.0.0Cordova platform version (
cordova platform ls
): Installed platforms: android 10.1.2 Available platforms: browser ^6.0.0 electron ^3.0.0 ios ^6.2.0 osx ^6.0.0Plugin config provided to
#ready
: config.xmlExpected Behavior
Plugin should install properly.
Actual Behavior
Failed to install plugin.
Steps to Reproduce
Context
Trying to install/add latest plugin to cordova-ios@6.2.0
Debug logs
Logs
``` Facing same issue. Failed to install plugin for iOS. cordova platforms add ios Using cordova-fetch for cordova-ios@^6.2.0 Adding ios project... Creating Cordova project for the iOS platform: Path: platforms/ios Package: com.mysmartjarvis.com Name: mySmartJarvis iOS project created with cordova-ios@6.2.0 config file .entitlements requested for changes not found at Project/platforms/ios/.entitlements, ignoring Installing "cordova-background-geolocation-lt" for ios Plugin dependency "cordova-plugin-background-fetch@7.1.1" already fetched, using that version. Installing "cordova-plugin-background-fetch" for ios "framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag. Failed to install 'cordova-background-geolocation-lt': Error: pod: Command failed with exit code 1 Error output: Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 /Users/deepshah/.rvm/gems/ruby-2.6.6@global/gems/activesupport-6.1.4.6/lib/active_support/inflector/inflections.rb:145:in plural': undefined method prepend' for []:Array (NoMethodError) from /Users/deepshah/.rvm/gems/ruby-2.6.6@global/gems/activesupport-6.1.4.6/lib/active_support/inflections.rb:13:in block in