-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError - no implicit conversion of nil into String #6381
Comments
Can you please paste your podspec? |
Podspec:Pod::Spec.new do |s|
s.name = 'xxxxxxLogging'
s.version = '0.1.0'
s.summary = 'A short description of xxxxxxLogging.'
s.description = 'TODO:Add long description of the pod here.'
s.homepage = 'https://github.xxxxxxx.com/xxxxxxx/xxxxxxxxxxxxxLogging'
s.license = { :type => 'Proprietary' }
s.author = { 'Gowda, Karthik' => 'Karthik_Gowda@gmail.com' }
s.source = { :git => 'https://github.xxxxxxx.com/xxxxxxx/xxxxxxxxxxxxxLogging.git', :tag => s.version }
s.platform = :ios
s.ios.deployment_target = '8.0'
s.source_files = 'xxxxxxxxLogging/**/*.{swift,h}'
s.public_header_files = 'xxxxxxxLogging/Logging.h'
end |
@KarthikGowda022 its very hard to test this without a sample project. Can you please provide one? |
Same error happened to me when we moved pod from private repo to public one. Solved by removing private repo because I don't need it anymore, but it's not the solution of course 😄 |
Enter the directory of your.Podspec file |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I'm facing the same problem but your solution didn't work with me still getting the same error podspec is valid if I removed the dependency I updated ruby and removed cocoa-pods and installed it again and did every expected solution people mentioned but still facing the same problem. any clues? I'm creating a private pod depending on another private pod the linter works well when I don't add any dependency but when I add the dependency and run the lint command it gives me that error
|
I'm encountering the same problem (CocoaPods 1.2.1). The root cause was a private repo that had a directory for the desired pod, but no podspecs within the directory. Removing that directory caused the install to fail with a meaningful error message. IMO this is a defect in the dependency resolver; it should handle that edge case gracefully and behave as if no revisions of the pod are in the repo. |
Yep, there's an active PR for this issue: CocoaPods/Core#405 - should be fixed in the next release |
Hm, it's not clear that the PR repairs the root cause I've got (no specs in the directory for a Pod), and the unit tests don't seem to cover it either. I'm not at all familiar with this code, but it seems reasonable to have a test case ensuring things work if there's a directory with no podspecs inside. At my quick reading, the code seems to assume that if there's a directory, there's at least one version therein. |
Ah, sure - fair enough, then you're welcome to take a look at either building on that PR, or making an independent one that covers the case 👍 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
I ran into the empty directory issue described by @toddjonker at #6381 (comment) and it cost me a few hours this week. I'm going to make a PR to fix. |
Thank you @paulb777 ! |
In case someone else comes across this in the future, if you are late to the cocoapods game, make sure you are using ruby > 2.3.1. |
Hi team,
I'm new to cocoapods. I'm trying to create a cocoapods library with pods name 'XXXXXLogging'
Getting the following error when I run 'pod install'
Analyzing dependencies
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――
Please help me in resolving the issue. I have seen multiple solutions posted for issue #5564 #6103 #3333. But none of them worked for me!! Please help.
Podsepc:
Pod::Spec.new do |s|
s.name = 'xxxxxxLogging'
s.version = '0.1.0'
s.summary = 'A short description of xxxxxxLogging.'
s.description = 'TODO:Add long description of the pod here.'
s.homepage = 'https://github.xxxxxxx.com/xxxxxxx/xxxxxxxxxxxxxLogging'
s.license = { :type => 'Proprietary' }
s.author = { 'Gowda, Karthik' => 'Karthik_Gowda@gmail.com' }
s.source = { :git => 'https://github.xxxxxxx.com/xxxxxxx/xxxxxxxxxxxxxLogging.git', :tag => s.version }
s.platform = :ios
s.ios.deployment_target = '8.0'
s.source_files = 'xxxxxxxxLogging/**/*.{swift,h}'
s.public_header_files = 'xxxxxxxLogging/Logging.h'
end
The text was updated successfully, but these errors were encountered: