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
876
votes
65 answers

Xcode building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64'

I am trying to get a large (and working on Xcode 11!) project building in Xcode 12 (beta 5) to prepare for iOS 14. The codebase was previously in Objective-C, but now it contains both Objective-C and Swift, and uses pods that are Objective-C and/or…
btxios
  • 8,935
  • 3
  • 9
  • 7
587
votes
23 answers

How to remove CocoaPods from a project?

What's the right way of removing CocoaPods from a project? I want to remove the whole CocoaPod. Due to some limitations imposed by my client I can't use it. I need to have just one xcodeproj instead of an xcworkspace.
Andres
  • 11,439
  • 12
  • 48
  • 87
528
votes
22 answers

Updating to latest version of CocoaPods?

I'm having some issues installing Alamofire 4.0 into my project. I've got the latest version of Xcode, running Swift 3, and when I try to install alamofire I'm getting like 800 compiler errors. Apparently CocoaPods 1.1.0+ is required to build…
Barkley
  • 6,063
  • 3
  • 18
  • 25
484
votes
4 answers

Ignore Xcode warnings when using Cocoapods

I use quite a lot third party libraries which have many warnings in it, after the latest Xcode updates. (for example the Facebook SDK pod) Now all these warnings are shown in my Xcode on the place I want to see my own warnings or errors. Is there…
KrauseFx
  • 11,551
  • 7
  • 46
  • 53
457
votes
8 answers

How to downgrade or install an older version of Cocoapods

How can I downgrade Cocoapods to an older version, or how can I install an older version of Cocoapods?
a fair player
  • 11,530
  • 9
  • 46
  • 48
451
votes
23 answers

Cocoapods Warning - CocoaPods did not set the base configuration of your project because because your project already has a custom config set

After I execute a pod install at the base of my project, I get the following error: CocoaPods did not set the base configuration of your project because because your project already has a custom config set. In order for CocoaPods integration to…
seanoshea
  • 5,556
  • 3
  • 20
  • 28
442
votes
40 answers

How to run CocoaPods on Apple Silicon (M1)

I have a Flutter project that I'm trying to run on iOS. It runs normally on my Intel-based Mac, but on my new Apple Silicon-based M1 Mac it fails to install pods. LoadError - dlsym(0x7f8926035eb0, Init_ffi_c): symbol not found -…
Jacobo Koenig
  • 11,728
  • 9
  • 40
  • 75
439
votes
20 answers

What goes into your .gitignore if you're using CocoaPods?

I've been doing iOS development for a couple of months now and just learned of the promising CocoaPods library for dependency management. I tried it out on a personal project: added a dependency to Kiwi to my Podfile, ran pod install…
Dan Tao
  • 125,917
  • 54
  • 300
  • 447
427
votes
30 answers

How do I install CocoaPods?

I referred to many links and tried, but I had no success. I read CocoaPods documents and many times tried to install, but I always failed because of the starting steps. I found one error whereby I can't install gems first. What are the steps one by…
kagmanoj
  • 5,038
  • 5
  • 19
  • 21
374
votes
10 answers

Remove or uninstall library previously added : cocoapods

I added an external framework via cocoapods into my iOS application. How can i remove that library from the project?
Lithu T.V
  • 19,955
  • 12
  • 56
  • 101
372
votes
32 answers

pod install -bash: pod: command not found

I installed pod some time ago. However, it's stopped working so I'm working through this again. However, I almost immediately run into a problem here: pod install -bash: pod: command not found Any suggestions why this happened?
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
358
votes
58 answers

Error: "The sandbox is not in sync with the Podfile.lock..." after installing RestKit with cocoapods

I've encountered an strange issue after installing RestKit with cocoapods. after resolving RestKit dependency for my project with cocoapods and trying to build it, I face this error: The sandbox is not in sync with the Podfile.lock. Run 'pod…
Hashem Aboonajmi
  • 13,077
  • 8
  • 66
  • 75
348
votes
29 answers

The iOS Simulator deployment targets is set to 7.0, but the range of supported deployment target version for this platform is 8.0 to 12.1

I'm getting this below warning message in my Xcode 10.1. The iOS Simulator deployment targets are set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. My simulator os in 12.1 Xcode 10.1 And I updated…
Naresh
  • 16,698
  • 6
  • 112
  • 113
347
votes
42 answers

library not found for -lPods

I got an error when archiving a project. This is my environment. Mac OS Lion Xcode 4.3.1 iOS SDK 5.1 The project deployment target is: IPHONEOS_DEPLOYMENT_TARGET 3.2 The error shows: ld: library not found for -lPods clang: error: linker command…
angelokh
  • 9,426
  • 9
  • 69
  • 139
323
votes
19 answers

cocoapods - 'pod install' takes forever

I was trying to update the existing pods with the pod install command, but it takes forever to run. The verbose mode shows it was stuck at the following line (forever) Updating spec repo master $ /usr/bin/git pull --no-rebase --no-commit There is…
Hai Feng Kao
  • 5,219
  • 2
  • 27
  • 38
1
2 3
99 100