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
81
votes
7 answers

Error Regarding undefined method `map' for nil:NilClass for Flutter App / CocoaPod Error

I'm having an error regarding my Flutter application. When I run the "flutter run" script in terminal, I'm getting the following error from Cocoapods: "Error output from CocoaPods: Searching for inspections failed: undefined method `map' for…
Samarth Shah
  • 941
  • 1
  • 8
  • 7
81
votes
12 answers

CocoaPods on M1 (Apple Silicon) fails with ffi wrong architecture

Running 'pod install' on a M1 MacBook failed for me due to an ffi issue, as described here. I followed some of the workarounds (I guess I tried all of them in various order), but now I get a slightly different error: LoadError -…
Nusatad
  • 3,231
  • 3
  • 11
  • 17
80
votes
11 answers

Xcode, Pods ProjectName.debug.xcconfig unable to open file. Wrong directory

When I build project, I see build error: ProjectName.debug.xcconfig unable to open file. I couldn't understand my problem for a long time, but today I take attention, what directory is wrong: full error:…
pragmus
  • 3,513
  • 3
  • 24
  • 46
80
votes
14 answers

Xcode 9 : Module compiled with Swift 3.1 cannot be imported in Swift 4.0

After updating to Xcode 9, I tried to build one of my projects. I use the FacebookLogin pod. I have a compiler error in FacebookLogin/LoginButton.swift @testable import FacebookCore ❌ Module compiled with Swift 3.1 cannot be imported in Swift…
Arnaud
  • 955
  • 1
  • 6
  • 15
80
votes
1 answer

Comments in CocoaPods?

Is there a way to write a comment inside a CocoaPod file? I had a look at their CocoaPods Guide, but I couldn't see anything.
Kyle
  • 17,317
  • 32
  • 140
  • 246
79
votes
6 answers

- Use the `$(inherited)` flag, or - Remove the build settings from the target. CocoaPod Swift3 pod update error

I've been running into a couple of strange errors in terminal when updating cocoapods after updating a Switf2 project to Swift3. Here are the errors: [!] The `MyShowGuide [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined…
SwiftyJD
  • 5,257
  • 7
  • 41
  • 92
79
votes
26 answers

Could not automatically select an Xcode project

When i type "pod install" in a correct directory I always get this Analyzing dependencies [!] Could not automatically select an Xcode project. Specify one in your Podfile like so: project 'path/to/Project.xcodeproj' podfile platform :ios,…
kvra13
  • 1,019
  • 2
  • 10
  • 16
77
votes
3 answers

podfile gives an error on install

I cloned a repo from git. Then removed the .git and .gitignore. The podFile looks like platform :ios, '6.1' pod 'AFNetworking', '~>1.3.3' pod 'AFOAuth1Client' After "pod install" I get the following errors: $ pod install Analyzing dependencies [!]…
U-L
  • 2,671
  • 8
  • 35
  • 50
74
votes
9 answers

Disable bitcode for project and cocoapods dependencies with Xcode 7?

How can you disable bitcode for your project and cocoapod dependencies? Here is the error I get when trying to run my project with Xcode 7. does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain…
jherg
  • 1,696
  • 2
  • 13
  • 15
74
votes
1 answer

CocoaPods Trunk cannot push update: "You need to register a session first."

I am attempting to publish my library using the new CocoaPods Trunk service. pod trunk push your-library.podspec This gives the error: [!] You need to register a session first. How does one register a session?
pkamb
  • 33,281
  • 23
  • 160
  • 191
73
votes
11 answers

This terminal won't let me run or install cocoa pods because I am on MacOS Catalina Beta?

I am interested in installing one of the GitHub repos that requires installing CocoaPods. There is no problem with my terminal (seems fine in a normal macOS version). I have one problem though: terminal is not installing CocoaPods, seemingly because…
Antonio Adrian Chavez
  • 1,016
  • 1
  • 7
  • 12
73
votes
15 answers

How to fix cocoapod .modulemap file not found

When I try to build my project, I get a compile time error saying that a "Module map file" for my pod cannot be found and that I am missing a "SwiftShimes" module. This is weird because all my modulemap files are where they should be when I install…
Kauna Mohammed
  • 797
  • 1
  • 6
  • 14
73
votes
12 answers

Cocoapods with Xcode 6 and 10.10 Yosemite

After initially upgrading to 10.10 and XCode6-Beta, I tried to run 'pod update' and I received this error: cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError) I tried to update Cocoapods using 'sudo…
Adam Fox
  • 3,438
  • 5
  • 23
  • 20
73
votes
4 answers

CocoaPods arm64 issue

When using Podfile for developing iOS 7 app with Xcode5, we always got this issue. After some searching, seems like no final resolve from CocoaPods ? Maybe resolved at this moment when you see this. How to resolve such issues right now ? The…
Forrest
  • 122,703
  • 20
  • 73
  • 107
71
votes
3 answers

Error installing a pod - Bus Error at 0x00000001045b8000

I'm just learning to use cocoapods and am encountering an error when trying to install a pod. Top of error: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi/library.rb:275: [BUG] Bus Error at 0x00000001045b8000 ruby 2.6.3p62 (2019-04-16 revision…
turtlespeed
  • 711
  • 1
  • 4
  • 5