I get an error while create a private repo. This are the steps I take:
- Create folder, run pod lint create
PrivateRepo
and set the values - Create private repo in BitBucket
- Run this command in the PrivateRepo folder:
commands:
git add .
git commit -m “Initial Commit"
git remote add origin https://[email protected]/Username/privaterepo.git
git push -u origin master
- Change the summary and homepage in my podspec, and set the bitbucket link above as source
- Run this commands:
commands:
git tag 0.1.0
git push origin 0.1.0
- Running pod spec lint --swift-version=4.1 now passes validation
- Run this commands:
commands:
pod repo add PrivateRepo https://[email protected]/Username/privaterepo.git
pod repo push PrivateRepo PrivateRepo.podspec --swift-version=4.1
- Till now, no error has ocurred. However when I want to pod install that pod into my other project, I get an error:
An unexpected version directory
Classes
was encountered for the/Users/Username/.cocoapods/repos/PrivateRepo/PrivateRepo
Pod in thePrivateRepo
repository.
This is my podfile in my other project:
source 'https://[email protected]/Username/privaterepo.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, ’10.3’
target 'OtherProject' do
use_frameworks!
pod 'PrivateRepo'
end
This is my podspec file:
Pod::Spec.new do |s|
s.name = 'PrivateRepo'
s.version = '0.1.0'
s.summary = 'test'
s.description = <<-DESC
TODO: Add long description of the pod here.
DESC
s.homepage = 'https://google.com'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Username' => '[email protected]' }
s.source = { :git => 'https://[email protected]/Username/privaterepo.git', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.source_files = 'PrivateRepo/Classes/**/*'
end