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
131
votes
23 answers

Xcode 10.2 Update issue Build system error -1: Unable to load contents of file list: input/output xcfilelist

After upgrading to Xcode 10.2 I am getting 2 errors :-1: Unable to load contents of file list: 'xxxxx/Pods/Target Support Files/Pods-xxxx/Pods-xxxxx-frameworks-Debug-input-files.xcfilelist' (in target 'xxxxx') :-1: Unable to load contents of…
Diptendu Das
  • 3,990
  • 7
  • 22
  • 38
130
votes
2 answers

How to clear or clean specific pod from the local cocoapods cache

How to delete or clear a specific pod from cocoapods cache? Tried deleting the entire cache directly, it takes lot of time to get back all pods. How to view and remove specific pod from cache? Following works (longer time commit): # delete all…
lal
  • 7,410
  • 7
  • 34
  • 45
128
votes
14 answers

Xcode 8 - Missing Files warnings

Ever since upgrading to Xcode 8 using Swift 2.3 I have several missing files warnings. They are all related to pods that I am using. The files that are missing are *.xcscheme *.cpp *.xcuserstate *.swift The pods that are showing missing files…
Alan
  • 9,331
  • 14
  • 52
  • 97
121
votes
5 answers

Cannot install cocoa pods after uninstalling, results in error

I removed cocoa pods because it claimed it had installed, but kept saying the command pod wasn't found afterward. When trying to reinstall cocoapods (sudo gem install cocoa pods -v) I get this error: ERROR: While executing gem ... (Errno::EPERM) …
Adrian Wacker
  • 1,311
  • 3
  • 9
  • 4
117
votes
7 answers

Set deployment target for CocoaPods's pod

I use CocoaPods to manage dependencies in my project. I've written Podfile: target 'MyApp' do platform :ios, '8.0' # Uncomment this line if you're using Swift or would like to use dynamic frameworks #use_frameworks! # Pods for MyApp pod…
Andrew Romanov
  • 4,774
  • 3
  • 25
  • 40
116
votes
3 answers

CocoaPods and GitHub forks

This is my first time forking a GitHub project, and I'm not too competent with CocoaPods either, so please bear with me. Basically, I forked a project on GitHub using the following in my Podfile: pod 'REActivityViewController', '~> 1.6.7', :git =>…
OdieO
  • 6,836
  • 7
  • 56
  • 88
111
votes
25 answers

CocoaPods could not find compatible versions for pod "Firebase/Core” | cloud_firestore, Flutter

I am having some issues in the pod, see below Launching lib/main.dart on iPhone X in debug mode... Running pod install... CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build…
Jashan PJ
  • 4,177
  • 4
  • 27
  • 41
111
votes
5 answers

How to remove the Xcode warning Apple Mach-O Linker Warning 'Pointer not aligned at address

I have a slight issue when build my Xcode project, get tones of warning after update pod. It looks like this Already search the whole site here but still no luck. it doesn't affect the project but it is quite annoying. Anyone could help?
Alexander Huang
  • 1,345
  • 2
  • 11
  • 16
108
votes
6 answers

What's ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES with CocoaPods, Swift 3 and Xcode 8

after installing cocoapods and adding pod "SwiftCarousel" to pod file and uncomment the platform :ios, '9.0' I got this ERROR ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES and what should I do? mohammed.elias$ pod install Analyzing…
MEH
  • 1,777
  • 3
  • 15
  • 34
106
votes
19 answers

cocoapods not installing

What does it mean and how can I fix it: pod install /Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Library/Ruby/Site/2.0.0/rubygems.rb:278:in…
Nirav Hathi
  • 1,507
  • 3
  • 12
  • 20
105
votes
2 answers

What exactly does `pod repo update` do?

I'm following an internet tutorial on Firebase and as part of it, I had to do some work on the command line. I'm pretty comfortable with the command line, but I'm unfamiliar with Cocoapods. I ran pod repo update but after doing so I realized I ran…
A Tyshka
  • 3,830
  • 7
  • 24
  • 46
105
votes
28 answers

'No such module' when I use CocoaPods

So here's my procedure. I create a new Podfile in the project directory, then I added the following platform :ios, '9.0' use_frameworks! target 'CPod' do pod 'AFNetworking', '~> 2.5' pod 'ORStackView', '~> 2.0' pod 'SwiftyJSON', '~> 2.1' end I…
Idris
  • 1,658
  • 4
  • 16
  • 21
104
votes
17 answers

Swift pods cannot yet be integrated as static libraries FirebaseCoreInternal-library

I am building an app by Flutter. I got this error message when doing "pod install" or "pod install --repo-update" or "pod update" and the pod install failed and stopped. The error message: [!] The following Swift pods cannot yet be integrated as…
Ivan Tsaryk
  • 1,193
  • 2
  • 8
  • 10
102
votes
12 answers

Unexpected CFBundleExecutable key

After spending some time googling, something tells me that the issue is new. We had a fully functional project supporting iOS7-8. Of course it was multiple times successfully submitted to AppStore. We use pods, lots of tracking and monitoring, like…
Dumoko
  • 2,614
  • 3
  • 25
  • 34
102
votes
19 answers

Unable to find a specification in CocoaPods

I cannot understand why the Cocoapod is unable to find the pod specification I created when I run pod install. Could someone help me solve this trouble? I'm defining a subspec in my library podspec file like this: s.subspec 'mysubspec' do |c| …
Gaius Augustus
  • 1,175
  • 2
  • 8
  • 8