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
313
votes
48 answers

ld: framework not found Pods

I'm trying to add a framework to my IOS project but when I build I always got the same message : ld: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) I tried to remove my Pods directory and…
Kaëris
  • 3,304
  • 2
  • 14
  • 17
305
votes
38 answers

ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension

I am trying to install cocoapods to my MacBook Pro running with OSX 10.9.1 (new Mavericks) and after type gem install cocoapods I get the following error: Building native extensions. This could take a while... ERROR: Error installing…
gran33
  • 12,421
  • 9
  • 48
  • 76
281
votes
14 answers

How to check version of a CocoaPods framework

I have updated Flurry via CocoaPods, but how can I check if Flurry was updated? I mean the terminal shown me that everything is ok: Installing FlurrySDK (4.2.3) Generating Pods project Integrating client project but I am not sure that it has been…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
272
votes
45 answers

Undefined symbols for architecture arm64

I am getting a Apple Mach-O Linker Error everytime I import a file from CocoaPods. Undefined symbols for architecture arm64: "_OBJC_CLASS_$_FBSession", referenced from: someFile ld: symbol(s) not found for architecture arm64 I get about 12 of…
GangstaGraham
  • 8,865
  • 12
  • 42
  • 60
266
votes
20 answers

Running pod setup gives me "bad interpreter: No such file or directory" error

Recently I tried to do pod setup and I get this error: -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory I followed Ray Wenderlich's guide to install CocoaPods and I get this issue so I have no idea…
user3670235
  • 3,125
  • 3
  • 13
  • 17
266
votes
9 answers

How to update a single pod without touching other dependencies

I understand that the following command will update a single pod: pod update . However this also updates the dependencies of other pods (pods that were not included in the update command) that you have previously installed. Is there a way…
ken
  • 3,897
  • 3
  • 22
  • 28
258
votes
21 answers

Pod install is staying on "Setting up CocoaPods Master repo"

I'm cloning a project from a git repo, but when I execute pod install the first line I see is "Setting up CocoaPods Master repo" and after that I can't see anything more, the console stops there. I don't know what is happening. Anyone knows what's…
Gabriel Goncalves
  • 5,132
  • 3
  • 25
  • 34
254
votes
13 answers

The target ... overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig

I have incorporate SpatialIite into a Xcode project which uses a header file from Proj.4, just one header. Both are Xcode projects and have static targets. I'm trying to migrate from git submodule to Cocoapods. Since static targets seems to be…
huggie
  • 17,587
  • 27
  • 82
  • 139
232
votes
12 answers

Flutter: CocoaPods's specs repository is too out-of-date to satisfy dependencies

Current, I was trying to add firebase_core: ^0.5.0+1 and firebase_crashlytics: ^0.2.1+1 packages in my flutter project with the latest versions, It works without any trouble in Android but in iOS, it is not working and giving error. So now how to…
user10563627
217
votes
26 answers

Xcode - ld: library not found for -lPods

I get these errors when I try to build an iOS application. ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) Ld…
mrks
  • 5,439
  • 11
  • 52
  • 74
216
votes
79 answers

Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code

Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks Showing Recent Messages:-1: rsync --delete -av --filter P…
Emin Kotan
  • 2,273
  • 3
  • 9
  • 12
210
votes
12 answers

Cocoapods commands fail due to "No such file or directory @ dir_initialize - /Users//.cocoapods/repos (Errno::ENOENT)"

Can anyone help me resolve the error in the stack trace below? This occurs when I run any pod command. I've uninstalled and reinstalled the gem with no luck. 00:44:05-David~/dev/farecast-app (master)$ pod setup Setting up CocoaPods master…
David
  • 2,430
  • 2
  • 15
  • 13
207
votes
30 answers

iOS - Build fails with CocoaPods cannot find header files

I have an iOS project using CocoaPods. Everything was working smoothly until another developer started to work on the same project. He made some changes (only to code as far as I know) and made a new branch in the repo. I have checked out his branch…
Filip Majernik
  • 7,700
  • 13
  • 45
  • 53
191
votes
8 answers

Installing CocoaPods: no response

Trying to install CocoaPods from the terminal: $ sudo gem install cocoapods After entering my root password, nothing happens. How can I debug that?
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
180
votes
30 answers

CocoaPods Errors on Project Build

I'm unable to build a project that uses CocoaPods. I get the following errors: diff: /../Podfile.lock: No such file or directory diff: Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod…
Undistraction
  • 42,754
  • 56
  • 195
  • 331