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
100
votes
5 answers

xcrun: error: SDK "iphoneos" cannot be located

I'm not experienced so I can't really pinpoint what is the problem. Thanks for the help. I cloned this repo: https://github.com/flatlogic/react-native-starter.git And was trying to follow the steps below: Clone the repo git clone…
Karrar Al-Mimar
  • 4,199
  • 3
  • 12
  • 15
97
votes
11 answers

Error on pod install

I have a working project the uses a pod file for some weeks now. When I learned that some of my pods have update I tried to 'pod install' on got this weird error Analyzing dependencies [!] Pod::Executable pull Updating…
Matan Poreh
  • 2,271
  • 2
  • 16
  • 9
95
votes
21 answers

Cocoapods + Cannot load underlying module for 'x'

I am running XCode 7, Swift 2.0, iOS 9. I want to install Alamofire in my project using Cocoapods. I have done the following: gem install cocoapods pod setup pod init Updated Podfile to: # Uncomment this line to define a global platform for your…
user5319603
95
votes
4 answers

what is the usage of "~>" in cocoapods

I want to know what the "~>" is used for,cause I find they are the same below: pod 'AFNetworking','~> 2.0.3' pod 'AFNetworking','2.0.3'
Mil0R3
  • 3,876
  • 4
  • 33
  • 61
92
votes
11 answers

Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1

When I installed cocoa pods I got this message. The cocoa pods downloaded is in version 1.10.1. Ive tried to use the command they give but this appears: Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version…
user13753206
92
votes
17 answers

Xcode 8 cocoapods abort trap: 6

localhost:PodTest3 haiwang$ pod install Analyzing dependencies Downloading dependencies Installing MBProgressHUD (0.9.2) Installing Masonry (1.0.2) Generating Pods project Abort trap: 6 After upgrading to Xcode 8, cocoapods doesn't work anymore. I…
haiwang
  • 915
  • 1
  • 6
  • 6
90
votes
18 answers

Framework not found GoogleToolboxForMac

After I update my Firebase via "pod update", I got error like this : ld: warning: directory not found for option…
bennysantoso
  • 1,213
  • 2
  • 12
  • 19
88
votes
11 answers

XCTest/XCTest.h not found on old projects built in Xcode 6

I have a few projects I'm trying to build with Xcode 6 Beta 2. The projects all have some type of library that uses XCTest (Kiwi/XCTest and Specta) that don't build in Xcode 6 because XCTest/XCTest.h cannot be found. fatal error: 'XCTest/XCTest.h'…
Erik Kerber
  • 5,646
  • 7
  • 38
  • 56
87
votes
7 answers

"Your project does not explicitly specify the CocoaPods master specs repo" warning when running pod install

After I ran pod install, I got a warning that said: [!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via pod repo remove…
fdvfarzin
  • 1,107
  • 1
  • 4
  • 14
87
votes
7 answers

Xcode 7.3 cannot create __weak reference in file using manual reference counting

After updating to Xcode 7.3, it throws the error Cannot create __weak reference in file using manual reference counting in pod files. Has anyone solved this issue?
REALFREE
  • 4,378
  • 7
  • 40
  • 73
87
votes
6 answers

How to find out the version of installed cocoa pods?

How to find out the version of installed cocoa pods? I'm not asking about the version of the cocoa pods gem, but the version of the pods themselves. Ideally it would say "pod GreatViewController is installed in version 1.2.3, new version available:…
brainray
  • 12,512
  • 11
  • 67
  • 116
86
votes
4 answers

How to use Objective-C CocoaPods in a Swift Project

Is there a way I can use a CocoaPod written in Objective-C in my Swift project using swift? Do I just make a bridging header? And if so, can I access the objects, classes, and fields defined by the libraries in the CocoaPod in Swift?
shaydawg
  • 1,193
  • 1
  • 12
  • 17
85
votes
3 answers

How to import and use Swift Pod Framework in Objective-C Project

I've been trying to checkout CocoaPods new framework setup to get some Pods going and I'm having trouble using the Swift one's in my Objective-C project. First things first, this is CocoaPods prerelease 0.35, you can read about how to use and…
Logan
  • 52,262
  • 20
  • 99
  • 128
84
votes
4 answers

Use Cocoapods with an App Extension

I'm trying to build a photo App Extension in Xcode 6 Beta-6 that uses cocoapods libraries. The bridging header that Xcode creates for the photo extension can't see anything from cocoapods. For example: #import results in the…
DanBlakemore
  • 2,306
  • 2
  • 20
  • 23
84
votes
6 answers

How to integrate Cocoapods with a Swift project?

As Apple introduced Swift, their new programming language, I wonder how you can integrate it with existing Objective-C libraries that are available via CocoaPods?
Michal K.
  • 2,517
  • 1
  • 18
  • 12