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
71
votes
8 answers

GoogleDataTransport is throwing Double-quoted include in framework header expected angle-bracketed error on iOS14

I've just update XCode to Version 12 and I'm using Firebase. I've updated pods as well but when I build the project it's giving me error: Double-quoted include "pb.h" in framework header, expected angle-bracketed instead These errors are multiple…
Chaudhry Talha
  • 7,231
  • 11
  • 67
  • 116
70
votes
8 answers

How to rebuild development pod changes?

I have a development pod that I connect to the my app locally using :path => '~/Projects/Swift/pod'. When I make changes inside the application code in that development pod, this changes are not included after build. It's like I'm build cached…
Gikas
  • 961
  • 1
  • 8
  • 20
69
votes
5 answers

Errors after updating to Xcode 8: "No such module" and "target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT`build setting"

I'm getting No such module for Pods when I try to build the project. If I remove the code expecting this Pod, another 'No such module' comes up for another Pod, which means every Pod must be affected. When I type pod install I get the following…
Questioner
  • 2,451
  • 4
  • 29
  • 50
68
votes
10 answers

Class is implemented in both, One of the two will be used. Which one is undefined

I have an issue with dependencies included in Cocoapods. I have a Framework project (MyFramework target), which also has App target (MyFrameworkExampleApp). When I try to run the app, I get a console full of errors like so: Class…
mag_zbc
  • 6,801
  • 14
  • 40
  • 62
66
votes
13 answers

could not find compatible versions for pod

I am new in IOS development and git. I am having a problem after merging my local repo to the dev repo. After merging when I build the project I get an error in the Xcode that says, "The sandbox is not in sync with the Podfile.lock. Run 'pod…
Somoy Das Gupta
  • 1,874
  • 1
  • 16
  • 19
66
votes
6 answers

Can not perform `pod install` under el capitan (15A279b)

I ran pod install with El Capitan and got this error: Errno::EPERM - Operation not permitted - /Users/../Pods/Pods.xcodeproj/xcuserdata/root.xcuserdatad Here's my environment: El Capitan (15A279b), Xcode Version 7.0 (7A220), cocoapod 0.38.2. Any…
MobileDev
  • 3,750
  • 4
  • 32
  • 35
65
votes
2 answers

What does inherit! :search_paths do?

After looking at CocoaPods' own example (from https://guides.cocoapods.org/syntax/podfile.html#abstract_target) # Note: There are no targets called "Shows" in any of this workspace's Xcode projects abstract_target 'Shows' do pod 'ShowsKit' #…
Quentin
  • 3,971
  • 2
  • 26
  • 29
65
votes
5 answers

Cannot Install Cocoapods - No podfile found in the project directory

I downloaded a sample project to learn how to make a UIPageViewController, and I am trying to essentially fork that project and need to add a third-party library. Right now, it does not look like I have a .xcworkspace file in my project. When I try…
tccpg288
  • 3,242
  • 5
  • 35
  • 80
64
votes
7 answers

Cocoa Pods not updating pods on El Capitan

I've upgraded to El Capitan and since then I can't update my pods. $ pod update -bash: pod: command not found So I've tried to reinstall CocoaPods and got this: $ sudo gem install cocoapods ERROR: While executing gem ... (Errno::EPERM) …
Luda
  • 7,282
  • 12
  • 79
  • 139
64
votes
25 answers

No such module 'RestKit' with cocoapods and swift

I am having this problem with a brand new project. This problem happens with both RestKit and Facebook SDK. Strangely SwiftyJSON works just fine. I create a brand new swift project and a Podfile with: source…
Joped
  • 1,108
  • 1
  • 11
  • 12
63
votes
11 answers

gem install fails with openssl failure

I tried to install cocoapods (http://cocoapods.org/) on my OSX Mountain Lion. moshe-mbp:~ moshem$ gem install cocoapods ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ -…
Moshe Marciano
  • 2,349
  • 4
  • 33
  • 44
62
votes
5 answers

cocoa pods install on iOS project not working

I have a react native project and want to install cocoa pods for iOS native specifics but the instal fails, I have ruby ruby 2.5.1p57 on Mac book pro I have posted the error down, would be grateful for help pod install Analyzing…
simonC
  • 4,101
  • 10
  • 50
  • 78
61
votes
2 answers

Error when trying to run `pod trunk push [cocoapod].podspec`

When trying to push an update to my cocoapod framework to the repo with pod trunk push as mentioned in the title, I get the following error: [!] Authentication token is invalid or unverified. Either verify it with the email that was sent or…
Justin Vallely
  • 5,932
  • 3
  • 30
  • 44
61
votes
5 answers

CocoaPods how to install only one new library

I have a list of libraries in my Pod file. I decide to add new one to Pod file. But I want to keep all my previous libraies without updates and just install (add) this one library pod 'JSAnimatedImagesView', '~> 1.0.0' so pod update and pod install…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
61
votes
4 answers

target overrides the FRAMEWORK_SEARCH_PATHS build settings

I'd like to ask and then answer this question. I'd like to update the CocoaPods built into my app, so I ran pod install from the terminal. That's when I got this error: [!] The `APP_NAME [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build…
Peter Brockmann
  • 3,594
  • 3
  • 28
  • 28