dustywusty / cocoapods-repo-svn Goto Github PK
View Code? Open in Web Editor NEWsvn support for cocoapods spec-repos
License: MIT License
svn support for cocoapods spec-repos
License: MIT License
hello, I want ask some questions about private repo on svn,
like this:
in privateB {
s.dependency 'PrivateC', :svn => 'svn:loginuser//xxxxxxxxxxxx/PrivateC',
}
when I use "pod lib lint --allow-warnings",
but it show wrong,
"Invalid privateB.podspec
file: [!] Unsupported version requirements."
how can I get s.dependency from other svn private repo?
thanks
I might be doing this incorrectly, but I have added my repo successfully using pod repo-svn add
and tested to see if cocoapods recognizes the template by running pod spec which MyPod
/Users/eric.amorde/.cocoapods/repos/private/Specs/MyPod/1.0.0/MyPod.podspec
But when trying a pod install
on a project in which the Podfile declares MyPod
as a dependency yields:
$ pod install
Analyzing dependencies
[!] Unable to find a specification for `MyPod`
The only thing I can think of is that at the top of the Podfile, I cannot add my repo as a source
because cocoapods does not recognize that it is not a git repo and will fail.
Hi,
How to add dependency SVN project path in my Podspec.
Ex: Project1 (SVN)
|------Project2 (SVN)
|-----------Project3 (SVN)
When i Pod "URL to Project 2", It creates pod for Project2 not created for Porject3. But Project2 is dependent on Project3.
How to specify the SVN path for Project3 in Project2 podspec. Thanks in advance.
Project2.podspec Looks like:
Pod::Spec.new do |s|
s.name = ‘Project2’
s.version = '0.0.1'
s.summary = ''
s.homepage = ‘svn url’
s.authors = ‘authr’
s.source = { :svn => ‘SVN url to Project2’ }
s.source_files = '*/.{h,m}'
pch_AF = <<-EOS
EOS
s.prefix_header_contents = pch_AF
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.dependency 'Project3', :svn => ‘url_of_podspec.podspec'
s.dependency 'AFNetworking'
s.dependency 'Mantle'
s.dependency 'XMLDictionary'
end
When I use pod install I can see this error msg svn: E170001: Can't get username or password
.
If I execute svn up
first and the terminal request a keychain auth, then the error goes away.
pod spec lint and pod package error when dependency a private repo with svn .
so what can i do for this issue?
YEJIANdeMacBook-Pro:YYShareKit JianYee$ pod spec lint YYShareKit.podspec
-> YYShareKit (1.2)
- WARN | source: Git sources should specify a tag.
- WARN | source: Git SSH URLs will NOT work for people behind firewalls configured to only allow HTTP, therefore HTTPS is preferred.
- WARN | description: The description is equal to the summary.
- ERROR | [iOS] unknown: Encountered an unknown error (Unable to find a specification forFastKit
depended upon byYYShareKit
) during validation.Analyzed 1 podspec.
[!] The spec did not pass validation, due to 1 error and 3 warnings.
the FasktKit is a private spec with svn.
As title.
I had a private subversion repo configured and working with Cocoapods 0.33.1. After updating to Cocoapods 0.34.2, I get the following error trying to run pod install with pods hosted in this repo:
fatal: No remote configured to list refs from.
[!] The my_internal_repo
repo is not a git repo.
Are there any known issues with cocoapods 0.34.x?
I'm running cocoapods version 0.33.1 and after installing cocoapods-repo-svn I get these warnings with every pod command:
[!] The specification of arguments as a string has been deprecated Pod::Command::RepoSvn::Add: `NAME URL`
[!] The specification of arguments as a string has been deprecated Pod::Command::RepoSvn::Update: `[NAME]`
[!] The specification of arguments as a string has been deprecated Pod::Command::RepoSvn::Lint: `[ NAME | DIRECTORY ]`
[!] The specification of arguments as a string has been deprecated Pod::Command::RepoSvn::Remove: `NAME`
These are only warnings though, everything works well so far...
Thank you for sharing this plugin, it's very useful :)
Issue:
Parameter order reported in reverse order for pod repo-svn add
Gem list:
cocoapods (0.34.2)
cocoapods-core (0.34.2)
cocoapods-downloader (0.7.2)
cocoapods-plugins (0.3.1)
cocoapods-repo-svn (0.1.1)
Gem version:
2.0.14
pod docs: [version 0.34.2 -- correct]
brianmelton$ pod repo add --help
Usage:
$ pod repo add NAME URL [BRANCH]
Clones `URL` in the local spec-repos directory at `~/.cocoapods/repos/`. The
remote can later be referred to by `NAME`.
Options:
--shallow Create a shallow clone (fast clone, but no push capabilities)
--silent Show nothing
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
repo-svn docs: [version 0.1.1 -- incorrect]
brianmelton$ pod repo-svn add --help
Usage:
$ pod repo-svn add URL NAME
Check out `URL` in the local spec-repos directory at `~/.cocoapods/repos/`. The
remote can later be referred to by `NAME`.
Options:
--silent Show nothing
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
repo-svn docs: [version 0.1.0 -- correct]
brianmelton$ pod repo-svn add --help
Usage:
$ pod repo-svn add NAME URL
Check out `URL` in the local spec-repos directory at `~/.cocoapods/repos/`. The
remote can later be referred to by `NAME`.
Options:
--silent Show nothing
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
Brief:
Core::Pod::Source::FileSystemDataProvider explicitly filters ., .., and .git directories.
Something similar needs to be added for svn, hg, and bzr.
See: Core/lib/cocoapods-core/source/file_system_data_provider.rb:45
Plugin also add's some nasty-ness to pod repo, since pod repo lint will lint all spec repos -- and blow up as soon as it hits anything that isn't git
Stack:
ArgumentError - Malformed version number string tmp
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/vendor/version.rb:191:in `initialize'
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/version.rb:62:in `initialize'
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/source.rb:94:in `new'
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/source.rb:94:in `block in versions'
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/source.rb:94:in `map'
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/source.rb:94:in `versions'
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/source/health_reporter.rb:52:in `block in analyze'
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/source/health_reporter.rb:51:in `each'
/Users/dusty/.rvm/gems/ruby-2.1.0/gems/cocoapods-core-0.31.0/lib/cocoapods-core/source/health_reporter.rb:51:in `analyze'
/Users/dusty/Workspace/dusty/cocoapods-svnrepo/lib/pod/command/repo_svn.rb:183:in `block in run'
Since the CocoaPods update 0.39 to 1.0 the cocoapods-repo-svn plugin seems to be broken:
/usr/local/bin/pod install
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.5 (15F34)
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 @ d7ba89614855d257eaed5ce3f8bdaef7b029b082
pods - @ fatal: Not a git repository (or any of the parent directories): .git
cocoapods-deintegrate : 1.0.0
cocoapods-plugins : 1.0.0
cocoapods-repo-svn : 2.0.1
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.0.0
cocoapods-try : 1.0.0
platform :ios, '8.4'
use_frameworks!
plugin 'cocoapods-repo-svn', :sources => ['http://svn.XXXXXX.de/ios/pods']
source 'https://github.com/CocoaPods/Specs.git'
def pods
pod 'Eureka', '~> 1.0'
# pod 'BXConnect'
pod 'MBProgressHUD', '~> 0.9'
end
target 'Spesen' do
pods
end
target 'Spesen Dev' do
pods
end
target 'Spesen Test' do
pods
end
target 'Spesen Training' do
pods
end
NoMethodError - undefined method `check_version_information' for #<Pod::Source::Manager:0x007fa1db2c04f0>
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/pod/command/repo_svn.rb:117:in `block (2 levels) in update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:63:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/pod/command/repo_svn.rb:104:in `block in update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/pod/command/repo_svn.rb:103:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/pod/command/repo_svn.rb:103:in `update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/pod/command/repo_svn.rb:74:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/cocoapods_plugin.rb:32:in `update_or_add_source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/cocoapods_plugin.rb:10:in `block (2 levels) in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/cocoapods_plugin.rb:8:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-repo-svn-2.0.1/lib/cocoapods_plugin.rb:8:in `block in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/hooks_manager.rb:109:in `call'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/hooks_manager.rb:109:in `block (3 levels) in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:141:in `message'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/hooks_manager.rb:103:in `block (2 levels) in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/hooks_manager.rb:101:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/hooks_manager.rb:101:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:141:in `message'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/hooks_manager.rb:100:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:482:in `run_source_provider_hooks'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:143:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:114:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/install.rb:37:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.