how to solve NoMethodError - undefined method `map' for nil:NilClass error - cocoapods

While I tried to install a pod I got an issue as follows
Content of my Podfile is
target 'DigiTechLeeJamApp' do
pod 'GRKOpenSSLFramework', :path => '/digitech_leejam_app/Source/iOS/DigiTechLeeJamApp/GRKOpenSSLFramework'
pod 'IQKeyboardManager'
end
How to solve this issue ?
I tried to solve the issue by seeing the method found in GitHub.(https://github.com/CocoaPods/CocoaPods/issues/11367)

Related

Pod install error within terminal

Pod File this error [!] Invalid Podfile file: undefined method `Pod' for # Did you mean? pod. is occuring when I am trying to pod install. In my pod file i have just added 'SwiftKeychainWrapper'
This is a terminal error with cocoapods, also an error with the import the way i imported was
import SwiftKeychainWrapper
[!] Invalid Podfile file: undefined method `Pod' for #
Did you mean? pod.
#
# -------------------------------------------
# pod 'Firebase/Database'
Pod 'SwiftKeychainWrapper'
#
# -------------------------------------------
just remove capital P, pod must be write with p not with P.
Try this pod 'SwiftKeychainWrapper'
ps.
If you read carefully the error
[!] Invalid Podfile file: undefined method `Pod' for # Did you mean?
pod.
it says that Pod does not exist. Did you mean pod

Pod missing homepage in Swift?

I pod the JSQMessage library but got the error. Please help me how can i fix this. This is what i wrote in pod file:
pod 'JSQMessagesViewController', :git => 'https://github.com/jessesquires/JSQMessagesViewController.git', :branch => 'develop'
And the error:
[!] The `JSQMessagesViewController` pod failed to validate due to 1 error:
- ERROR | attributes: Missing required attribute `homepage`.
If you forking it, just add s.homepage = "https://LINKTOSOMETHING" into your library .podspec

payola subscription with rails

I am trying to implement the payola-payment subscription in a Rails project.
I have tried to use the gem payola-payments but after running bundle, I am facing the following error when running rake db:migrate:
NoMethodError: undefined method `event_retriever=' for StripeEvent:Module
Did you mean? event_filter=
I have found a solution that suggests using gem 'payola-payments', :git => 'git#github.com:payolapayments/payola.git', but after that I get a migration error:
NoMethodError: undefined method `[]' for #
Can any one help with this?
Your version of payola-payment has a bug check it here :
github.com/payolapayments
It is suggested to replace
gem 'payola-payments'
with
gem 'payola-payments', :git =>
'git#github.com:payolapayments/payola.git'
in you Gemfile.

Unable to find a specification in CocoaPods xcode8.1

I am getting error in both 'pod install' and 'pod update'
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using ARCHS setting to build architectures of target Pods-pojectnam: (``)
Finding Podfile changes
MBProgressHUD
Resolving dependencies of Podfile
[!] Unable to find a specification for MBProgressHUD (~> 0.9.2)
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/resolver.rb:442:in handle_resolver_error'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/resolver.rb:65:inrescue in resolve'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/resolver.rb:57:in resolve'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:723:inblock in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:64:in section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:721:inresolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:76:in analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:236:inanalyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:150:in block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:64:insection'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:149:in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:110:ininstall!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command/install.rb:37:in run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:334:inrun'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:50:in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/bin/pod:55:in'
/usr/local/bin/pod:23:in load'
/usr/local/bin/pod:23:in'
This is error logs. I have tried installing cocoapods gem again , removing master repo but no luck.
Also i have tried manually clone git specs but its not woking its stopped after 90%
Pointing directly to the git repo worked for me. As an example replace the top line with the next one in your podfile:
replace this --> pod 'Alamofire', '~> 4.0'
with this--> pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git'
replace this --> pod 'SwiftyJSON' , '~> 3.1'
with this--> pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
For more on this see RaziPour1993's answer here

Cocoapods pod install gives undefined method inherit

I am getting this wierd error. If I look at the cocoapod specs, this seems like a valid syntax. What am I doing wrong.?
[!] Invalid `Podfile` file: undefined method `inherit!' for #<Pod::Podfile:0x007fad141d1050>. Updating CocoaPods might fix the issue.
# from /Users/Downloads/EarlGrey-master/Demo/EarlGreyExample/Podfile:28
# -------------------------------------------
# target TEST_TARGET do
> inherit! :search_paths
# pod 'EarlGrey'
Open your Podfile and Remove Project_Tests block.
for example,
Following Gives Error :
use_frameworks!
target 'MyPodProject_Example' do
pod 'MyPodProject', :path => '../'
target 'MyPodProject_Tests' do
inherit! :search_paths
end
end
Successful:
use_frameworks!
target 'MyPodProject_Example' do
pod 'MyPodProject', :path => '../'
end
Then do pod update (in terminal). This will create the .xcworkspace
Make sure you have the latest version of Cocoapods installed.
As mentioned by Zoidberg, you need to have at least version 1.0 (which is now stable) in order to support 'inherit'.
sudo gem install cocoapods
With this your pod install should not give you any errors.
I face a similar problem, here is what worked for me
sudo gem install cocoapods --pre
this will basically install the 1.0.0.beta.6 version of cocoapods which has 'inherit'

Resources