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
60
votes
18 answers

Incorrect path for Pods.debug.xcconfig in Xcode?

so I used Venmo/Synx on my Xcode project with CocoaPods, and it completely screwed everything up. I was able to fix the Manifest.lock and Podfile.lock errors, but now I am getting this error: The file “Pods.debug.xcconfig” couldn’t be opened…
mais-oui
  • 2,691
  • 6
  • 19
  • 15
60
votes
1 answer

Cocoapods install error

im trying to install cocoapods in a project oy mine, but i get always an error /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:103: warning: Insecure world writable dir /usr/local in PATH, mode…
CravenJM
  • 601
  • 5
  • 4
59
votes
2 answers

How do I create a CocoaPods podspec that has a dependency that exists outside of Specs?

I have a public fork of a library that already exists in CocoaPods/Specs. In a Podfile, I can reference this forked pod by doing this: pod 'CoolLibrary', :git => 'git@github.com:myname/CoolLibrary-Forked.git', :commit =>…
Nick Forge
  • 21,344
  • 7
  • 55
  • 78
58
votes
4 answers

How to add custom project configurations to Xcode when using CocoaPods?

I have an iOS/OS X Xcode projects, where I'm using CocoaPods, and I can't seem to figure out how to add my own project configurations (In addition to Debug and Release) without completely blowing up the build. In the project, I have a number of…
radex
  • 6,336
  • 4
  • 30
  • 39
57
votes
10 answers

cocoaPods pod install Permission denied

This is the short version: When I run pod install in an Xcode project I get [!] Pod::Executable pull error: cannot open .git/FETCH_HEAD: Permission denied If I run sudo pod install I get no error, but my files installed are owned by root…
godzilla
  • 971
  • 1
  • 10
  • 18
55
votes
26 answers

react-native ios Podfile issue with "use_native_modules!"

In my react-native project (react-native@0.60) in the ios/ dir I run pod install and get this error: [!] Invalid `Podfile` file: no implicit conversion of nil into String. # from /Users/coryrobinson/projects/hhs2/ios/Podfile:37 # …
Cory Robinson
  • 4,616
  • 4
  • 36
  • 53
55
votes
17 answers

Cocoapods ld: library not found for -lPods-Projectname

I've installed cocoa pods library and some frameworks through it. Now when I compile project the build fails. Error: ld: library not found for -lPods-Project clang: error: linker command failed with exit code 1 (use -v to see invocation) Here part…
Eugene Biryukov
  • 1,702
  • 1
  • 13
  • 19
55
votes
4 answers

What is Cocoapods?

What is Cocoapods? I've seen that a lot of developers have been using Pods when developing apps to install APIs, but I'm not grasping why you couldn't just import the files manually. What is their purpose, and how are they helpful?
James
  • 717
  • 2
  • 6
  • 9
54
votes
7 answers

The version of CocoaPods used to generate the lockfile (1.5.3) is higher than the version of the current executable (1.5.2)

on $pod install it gives warning & fails The version of CocoaPods used to generate the lockfile (1.5.3) is higher than the version of the current executable (1.5.2) What is it trying to say ? macOs : 10.11.6 osx el capitan my pod version is :…
vijay
  • 10,276
  • 11
  • 64
  • 79
54
votes
16 answers

Integrate Fabric/Crashlytics via CocoaPods

I try to integrate Fabric/Crashlytics via CocoaPods, my Podfile looks like this: pod 'Fabric/Core', '1.2' pod 'Fabric/Crashlytics', '1.2' But when I try to build my app, the build fails and I get a Shell Script Invocation Error that the run script…
swalkner
  • 16,679
  • 31
  • 123
  • 210
53
votes
4 answers

How to Remove Warning: "-pie being ignored. it is only used when linking a main executable"

Since updating to Xcode10 and Swift 4.2, I always get this build time warnings in my pod. what do I have to do to remove these warnings? I have tried to delete derived data, clean and build project, but it doesn't work :( I find someone asks the…
sarah
  • 3,819
  • 4
  • 38
  • 80
52
votes
2 answers

Can I use CocoaPods when creating a Cocoa Touch Framework?

I'm creating a new Cocoa Touch Framework (MyFramework.framework), which will have a dependency on Alamofire. This framework will be written in Swift. As a test I started a new Cocoa Touch Framework project: File > New > Project > Framework & Library…
bneu
  • 573
  • 1
  • 4
  • 10
51
votes
8 answers

How to set the Legacy Swift Versions for each Pod in Podfile

I am currently setting the legacy in the Podfile to SWIFT_VERSION = 2.3, but some of the libraries I am using are Swift 3.0, which means that I need to manually set the legacy for all Swift 3.0 pods legacy to No on each pod install. How do I…
Tal Zion
  • 6,308
  • 3
  • 50
  • 73
51
votes
9 answers

Unable to find a target named `ProjectName`

I added new pod in PodFile and ran command pod install It deleted all previous pods and failed with following error Unable to find a target named `ProjectName` However I recovered all deleted pods by using Git, but now my project is not being…
Aamir
  • 16,329
  • 10
  • 59
  • 65
50
votes
5 answers

"pod init" creates error that says "You need at least git version 1.8.5 to use CocoaPods"

I was not able to install any pod in my system. Hence, I removed cocoapods from my Mac and then reinstalled it. The process was successful but when I run the command pod init following error shows up in the terminal: `verify_minimum_git_version!':…
Ishika
  • 2,187
  • 1
  • 17
  • 30