When using a project with a custom license file location, CocoaPods warns it can't find it. I have only tested this with a single pod (Changeset) but it seem to be configured correctly, so I think it's a CocoaPods issue (i.e. I haven't been able to find other projects with custom license file location). This can be reproduced with a brand new Xcode project/Podfile (link below). I get this warning when running pod install
.
[!] Unable to read the license file `/Users/mikkel/Development/TEST/Pods/Changeset/LICENSE` for the spec `Changeset (1.0.5)`
This is the podspec
from Changeset:
Pod::Spec.new do |spec|
spec.name = 'Changeset'
spec.version = '1.0.5'
spec.license = { :type => 'MIT', :file => 'LICENSE.md' }
spec.homepage = 'https://github.com/osteslag/Changeset'
spec.author = { 'Joachim Bondo' => '[email protected]' }
spec.social_media_url = 'https://twitter.com/osteslag'
spec.summary = 'Minimal edits from one collection to another'
spec.description = 'A Swift value type to compute and hold the edits required to go from one CollectionType of Equatable elements to another.'
spec.source = { :git => 'https://github.com/osteslag/Changeset.git', :tag => "v#{spec.version}" }
spec.source_files = 'Sources/*.swift'
spec.requires_arc = true
spec.ios.deployment_target = '8.0'
spec.osx.deployment_target = '10.9'
spec.watchos.deployment_target = '2.0'
end
Added the pod Changeset to my project
Run pod install
Installation without warnings.
Pod is installed but with warnings:
Analyzing dependencies
Downloading dependencies
Installing Changeset (1.0.5)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `TEST.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
[!] Unable to read the license file `/Users/mikkel/Development/TEST/Pods/Changeset/LICENSE` for the spec `Changeset (1.0.5)`
[!] Unable to read the license file `/Users/mikkel/Development/TEST/Pods/Changeset/LICENSE` for the spec `Changeset (1.0.5)`
CocoaPods : 1.0.1
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
RubyGems : 2.0.14.1
Host : Mac OS X 10.11.6 (15G31)
Xcode : 7.3.1 (7D1014)
Git : git version 2.7.4 (Apple Git-66)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 9802150c0eb574bdff709656a6345a3f1865717b
master-1 - [email protected]:CocoaPods/Specs.git @ 96cd568f5e0a7ca44b7596dc46ed9d5f895768f2
mobilelife - https://github.com/mobilelife/DanskeBank-Pods.git @ 7265933610d75c411b763cce2fcc2c64f51c4a20
mobilelife-1 - [email protected]:mobilelife/DanskeBank-Pods.git @ 7265933610d75c411b763cce2fcc2c64f51c4a20
Executable Path: /usr/local/bin/pod
cocoapods-acknowledgements : 1.1.1
cocoapods-deintegrate : 1.0.0
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.0.0
cocoapods-try : 1.0.0
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'TEST' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Changeset'
end
Looks like the 1.0.5 version of this Pod refers to a non-existing license file: https://github.com/CocoaPods/Specs/blob/master/Specs/Changeset/1.0.5/Changeset.podspec.json#L6 β please report this upstream.
I also encountered this problem, don't know how to solve
Hi @linmingzhi! This issue is quite old. Would you mind filing a new issue and filling out the issue template? Thanks!
GitPodTextSDK has the license file ,I can see The picture in The attachmentγ
GitPodTextSDK.podspec passed validation.but I can not search GitPodTextSDK,What should I do οΌ
At 2016-12-22 22:45:16, "Ben Asher" notifications@github.com wrote:
Hi @linmingzhi! This issue is quite old. Would you mind filing a new issue and filling out the issue template? Thanks!
β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
GitPodTextSDK git:(1.0.1) pod trunk push
[!] Found podspec GitPodTextSDK.podspec
Updating spec repo master
CocoaPods 1.2.0.beta.1 is available.
To update use: sudo gem install cocoapods --pre
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.0.beta.1
Validating podspec
-> GitPodTextSDK (1.0.1)
Updating spec repo master
CocoaPods 1.2.0.beta.1 is available.
To update use: sudo gem install cocoapods --pre
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.0.beta.1
π Congrats
π GitPodTextSDK (1.0.1) successfully published
π
December 23rd, 01:17
π https://cocoapods.org/pods/GitPodTextSDK
β GitPodTextSDK git:(1.0.1) pod repo update
Updating spec repo master
CocoaPods 1.2.0.beta.1 is available.
To update use: sudo gem install cocoapods --pre
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.2.0.beta.1
β GitPodTextSDK git:(1.0.1) pod search GitPodTextSDK
[!] Unable to find a pod with name, author, summary, or description matching GitPodTextSDK
At 2016-12-22 22:45:16, "Ben Asher" notifications@github.com wrote:
Hi @linmingzhi! This issue is quite old. Would you mind filing a new issue and filling out the issue template? Thanks!
β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
For anyone that may run across this later, I had this issue with the Lookback pod, but none of my coworkers did. What fixed it for me was just removing all the installed pods and reinstalling them. This was after a pod cache clean --all
and pod install
which did not resolve the issue.
As an FYI for others: if your source points to a .zip
using the http:
option in the .podspec
, you need to ensure the .zip
file includes a copy of the LICENSE
file.
e.g.
s.source = { :http => "https://github.com/iwasrobbed/MyAwesomeLibrary/releases/download/v#{s.version.to_s}/MyAwesomeLibrary.zip" }
CocoaPods doesn't care if the license file is included in the repo root (like it does when you use git:
as a source); it needs to be included when the source gets unzipped.
makes sense. The file is being downloaded instead of cloning a git repo because thats what the source is.
For anyone that may run across this later, I had this issue with the Lookback pod, but none of my coworkers did. What fixed it for me was just removing all the installed pods and reinstalling them. This was after a
pod cache clean --all
andpod install
which did not resolve the issue.
It's work for me,thanks
Most helpful comment
For anyone that may run across this later, I had this issue with the Lookback pod, but none of my coworkers did. What fixed it for me was just removing all the installed pods and reinstalling them. This was after a
pod cache clean --all
andpod install
which did not resolve the issue.