Podspec dependency is not getting downloaded with vendored framework from URL - cocoapods

When I am using vendored framework in my podspec and downloading the framework from URL:
s.source = { :http => "https://example.com/MyFramework.xcframework.zip" }
s.vendored_framework = 'MyFramework.xcframework'
and have below the line:
s.dependency 'MyPublicPod', '= 0.1.0'
the dependency somehow is not being downloaded.
But if I separately install pod 'MyPublicPod' it gets downloaded.
What might be the issue? Cannot I download dependency when using vendored framework from URL?
On pod install it ONLY downloads MyFramework.xcframework but my dependency is not getting downloaded.

Related

Cocoapods not resolving through Artifactory

Cocoapods not resolving through Artifactory - project not showing up in the remote-cache
I have been following all the instructions in the screencat - Set me up - https://www.youtube.com/watch?v=6eiL3IaQG3Q
I have gem installed cocoapods and cocopods-art.
Added the 'Custom Base URL' = http://localhost:8081/artifactory
Added the following line to have Cocoapods resolve to artifactory:
pod repo-art add c-remote "http://localhost:8081/artifactory/api/pods/c-remote"
Added the following to my Podfile:```
vi Podfile
plugin 'cocoapods-art', :sources => [
'c-remote'
]
target 'Pods Updater' do
use_frameworks!
pod 'RxSwift', '4.4.2'
pod 'RxCocoa', '4.4.2'
pod 'Highlightr', '2.1.0'
end
Ran: pod install
Pod installation complete! There are 3 dependencies from the Podfile and 4 total pods installed.
Yet I do not see the projects in Artifactory. I tried several times. See image below.
Project not showing up
Try with Artifactory running on your Mac (localhost) and Cocoapods installed on the same machine (Mac).

Cannot install Alamofire 4.0 in Xcode 8.0 Using CocoaPods

I need to upgrade one project to Swift 3.0, that has some libraries by Cocodpods.
So, I've removed all links related with Cocoapods and recreate pod file using pod init and upgrade some version of library such as AlamorFire.
But pod install said
[!] Unable to satisfy the following requirements:
- `Alamofire (~> 4.0)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 4.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
I've updated deployment Target to 9.0 and using cocoapod 1.1.0
For test, I've created new project and added only Alamofire, but the result is same.
If you have some experience, please help me.
try sudo gem install cocoapods --pre
the pod file should look like
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'YourAPP' do
pod 'Alamofire', '~> 4.0'
pod 'SwiftyJSON', :git => 'https://github.com/acegreen/SwiftyJSON.git', :branch => 'swift3'
pod 'NetReachability'
end
Since you have an outdated pod repo, pod install getting failed. First of all you have to update your pod master repo before running pod install. Follow the steps given to update your pod repo and resolve the pod error.
Go to Cocoa Pods repo folder (~/.cocoapods/repos) and delete master folder
Run pod update on terminal. This will take several minutes to update pod repo.
When update get finished, run pod install (if required).
Hope this would be useful for those who are getting similar error :)

CocoaPods 1.0.0b6 incorrect subspec dependents header paths when use_frameworks

I've got a simple simple PodFile for an empty single view app target and project named 'tf' in workspace 'ws'
platform :ios, '8.0'
use_frameworks!
workspace 'ws'
project 'tf/tf'
target 'tf' do
pod 'ShareKit/Facebook', '~> 5.0.0'
pod 'ShareKit/Tumblr', '~> 5.0.0'
end
Using 1.0.0b6 it chugs out:
MacBook-Pro:testflurry steve$ pod install
Analyzing dependencies
Downloading dependencies
Installing Bolts (1.7.0)
Installing Facebook-iOS-SDK (3.24.4)
Installing PKMultipartInputStream (1.1.0)
Installing SAMTextView (0.2.2)
Installing SDWebImage (3.7.5)
Installing SSKeychain (1.2.3)
Installing ShareKit (5.0.0)
Installing UIActivityIndicator-for-SDWebImage (1.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 8 total pods installed.
It won't build, an import inside sharekit fails to be found
#import <UIActivityIndicator-for-SDWebImage/UIImageView+UIActivityIndicatorForSDWebImage.h>
The reason seems obvious, when you inspect ShareKit target in the pods project, the HEADER_SEARCH_PATHS ends up as
"${PODS_ROOT}/Headers/Private"
"${PODS_ROOT}/Headers/Public"
I gather that ${PODS_ROOT} evaluates to ${SRCROOT} or the project dir and the headers folder is empty. Seems like I'm either missing something fundamental or something isn't right. 'little help?

Downloading dependencies for a private gem in vendor/cache

We have created a gem for internal use only which is not hosted on any server. It is distributed to teams as a gem file, who then add it to their "vendor/cache" folder, and use Bundler to add it as a dependency.
The gemspec file in the gem project stipulates the require dependencies for our internal gem, but is not downloading them when "Bundle install" is used. I assume this is because the list of dependencies is extracted from a call to the rubygems server rather than extracting from the Gem file itself?? If the dependencies are already in vendor/cache then all is fine.
Is there any way of instructing gem/bundler to get the list of dependencies from the gem itself rather than a server?
Is our only solution to create an internal Gem server?
bundle install looks for dependencies in a Gemfile and ignores the .gemspec.
According to Rails Engine documentation:
"Declare your gem's dependencies in clinkle_shared.gemspec. Bundler will treat runtime dependencies like base dependencies, and development dependencies will be added by default to the :development group.
Declare any dependencies that are still in development in a Gemfile instead of in your .gemspec. These might include edge Rails or gems from your path or Git. Remember to move these dependencies to your .gemspec before releasing your gem to rubygems.org."

CorePlot 1.2 - pod install no response

I just added
pod 'CorePlot', '~> 1.2'
to my Podfile, now trying
$ pod install
Resolving dependencies of `./Podfile'
Updating spec repositories
Cocoapods 0.18.1 is available.
Resolving dependencies for target `default' (iOS 6.0)
Downloading dependencies
Installing CorePlot (1.2)
It's getting hanged there with no response.
What can I do ?
This source library is nearly 200 megabytes. It may depend on your internet connection but I imagine this would complete if you gave it enough time.
If you want to see what it is doing try
$ pod install --verbose

Resources