Questions tagged [cocoapods]

CocoaPods is the dependency manager for objective-C and swift Cocoa projects.

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has almost ten thousand libraries and can help you scale your projects elegantly. Get on with building your app, not duplicating code.

You specify the dependencies for your project in one text file named Podfile. CocoaPods resolves dependencies between libraries, fetches source code for the dependencies, and creates and maintains an Xcode workspace to build your project.

Ultimately, the goal is to improve discoverability of, and engagement in, third party open-source libraries, by creating a more centralized ecosystem.

Resources

Related Tags

9372 questions
177
votes
12 answers

Pod install displaying error in cocoapods version 1.0.0.beta.1

My podfile was working but after updating to cocoapods version 1.0.0.beta.1 pod install displays following error MacBook-Pro:iOS-TuneIn home$ pod install Fully deintegrating due to major version update Deleted 1 'Copy Pods Resources' build…
Muhammad Nabeel Arif
  • 19,140
  • 8
  • 51
  • 70
170
votes
4 answers

How do I specify multiple targets in my podfile for my Xcode project?

I'm using CocoaPods with my Xcode 4 project and I have three targets for my project (the default, one for building a lite version and one for building a demo version). All the targets use the same libraries, but CocoaPods is only adding the static…
Austin
  • 4,638
  • 7
  • 41
  • 60
164
votes
25 answers

CocoaPods not working in macOS High Sierra

After upgrading to macOS High Sierra CocoaPods is not working. While it is tempting to move away from CocoaPods, it's unfortunately not in scope right now. The error message is below. zsh: /Users/****/.gems/bin/pod: bad interpreter:…
Maciej Swic
  • 11,139
  • 8
  • 52
  • 68
164
votes
25 answers

Error "library not found for" after putting application in AdMob

I am getting an error after I put my application in an AdMob. The app was working until today. The error is the following: ld: library not found for -lGoogleAdMobAds clang: error: linker command failed with exit code 1 (use -v to see…
ViniciusPV
  • 1,657
  • 2
  • 11
  • 7
162
votes
5 answers

Why do we use use_frameworks! in CocoaPods?

I have used use_frameworks! in CocoaPods Podfile many times. I just wonder why do we use it? I couldn't get the straight forward answer of it. Example: platform :ios, '8.0' use_frameworks! target "CityWhether" do pod 'Alamofire' pod…
harikrista
  • 1,621
  • 2
  • 11
  • 8
156
votes
3 answers

How to install a pod from a specific branch?

I'm trying add add a pod by cocoapods, and I am using swift 3, while the pod(SQlite.swift). I am trying to use doesn't have a master of the latest swift version, however there is a branch for swift 3. So how should I set my podfile to download the…
Stanley
  • 1,981
  • 3
  • 14
  • 18
151
votes
4 answers

CocoaPods - use specific pod version

I am using CocoaPods for a macOS app. I have compilation errors with AFNetworking (current version, 1.2.1) and saw that these didn't exist in the previous version (1.2.0). I did some research but did not find a possibility to define the version of…
nein.
  • 2,037
  • 2
  • 15
  • 17
151
votes
14 answers

Libraries not found when using CocoaPods with iOS logic tests

I am trying to write some iOS logic tests against classes in my project that use functionality from some of the libraries in my podspec. I am using the standard unit test bundle provided in Xcode (although not Application Tests, just Unit…
Mark Struzinski
  • 32,945
  • 35
  • 107
  • 137
147
votes
13 answers

CocoaPods could not find compatible versions for pod "ReactCommon/jscallinvoker":

I just updated to RN v0.62 and running app on iOS gives me following error !] CocoaPods could not find compatible versions for pod "ReactCommon/jscallinvoker": In snapshot (Podfile.lock): ReactCommon/jscallinvoker (from…
BraveEvidence
  • 53
  • 11
  • 45
  • 119
143
votes
7 answers

Cocoapods staying on "analyzing dependencies"

I'm using cocoapods to manage my dependencies. All have been working fine. Now, When I'm creating a new project, added the following to my podfile, platform :ios, '6.1' pod 'RestKit', '~> 0.20.0' when i'm doing pod install, it is continually…
Noor
  • 19,638
  • 38
  • 136
  • 254
141
votes
16 answers

Cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo

When running pod repo update the following error is generated: Updating spec repo `master` [!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down Using cocoapods 1.0.1 I'm…
Ivan M.
  • 2,941
  • 3
  • 13
  • 10
140
votes
36 answers

error: 'Flutter/Flutter.h' file not found when flutter run on iOS

I don't know why but I can't build or run the App in my new Macbook, I run the same folder on another Mac or my windows computer and runs perfectly. here when I run flutter clean, I have to run pub get to solve the issues, Is that normal? If I…
Raffaelli L.C.
  • 5,237
  • 5
  • 11
  • 18
140
votes
14 answers

Xcode Unit Testing with Cocoapods

I've been banging my head against a wall with this for the last few days but despite multiple Google/SO/Github searches I can't find a resolution to the issues I'm having! All I'm trying to do is create some unit tests for my app which makes use of…
doovers
  • 8,545
  • 10
  • 42
  • 70
134
votes
21 answers

Сocoapods trunk URL couldn't be downloaded

I am getting this error when I try to pod repo update and pod install CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/deprecated_podspecs.txt, error: Failed to open TCP connection to cdn.cocoapods.org:443 (No route to host…
Nike Kov
  • 12,630
  • 8
  • 75
  • 122
133
votes
13 answers

Cocoapods setup stuck on pod setup command on terminal

MacBook-Pro:~ skbc$ pod setup --verbose /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 Setting up CocoaPods…
sanjay
  • 2,116
  • 3
  • 19
  • 25