Questions tagged [podspec]

This is the file extension for CocoaPods, which is distributed as a ruby gem

Cocoapods (http://cocoapods.org/) is a dependency management framework for XCode. It allows you to declaratively define project dependencies and have them included in the build of your project. It's like Apache Maven or Ruby Gems for XCode.

370 questions
10
votes
2 answers

How to build cocoa touch framework for all architectures dependent on other frameworks added using cocoapods?

I want to create a private cocoapod of the output framework built for both simulators and devices. I have created a Cocoa touch framework in which I have integrated CocoaLumberjack using Cocoapods. I want to build the framework for all…
Saurabh Bhatia
  • 1,875
  • 1
  • 20
  • 29
10
votes
1 answer

Podspec validation error - File Patterns: The spec is empty

I am trying to create my first pod again. I have tried this long ago, 1 year back I remember, that time also I got similar error. Following code shows how my project.podspec file looks like, I don't know what I miss in here, CocoaPods just literally…
user6375148
10
votes
2 answers

How to create a pod that includes static libraries?

I'm struggling with making my library work as a CocoaPod and would appreciate any assistance that points me in the correct direction. I've never made a Pod before, and I feel like I've got everything right to the point that this would work... if it…
nhgrif
  • 61,578
  • 25
  • 134
  • 173
10
votes
1 answer

Why is my library not able to expand on the CocoaPods website?

I'm trying to access my library's information through the CocoaPods website, but I'm not able to. All the other libraries seem to be able to expand (mine is MKWeatherUndergroundKit) Here is my podspec Pod::Spec.new do |s| s.name =…
MendyK
  • 1,643
  • 1
  • 17
  • 30
9
votes
1 answer

pod spec lint fails when pod lib lint succeeds. 'vendored_frameworks' pattern did not match any file

I made an framework for which I'd like to distribute via CocoaPods. I'm not sure if I'm doing something stupid. I've included a completed .framework folder in the base directory and I'd like that to be the source for my pod. When I run "pod lib…
wesshi
  • 231
  • 2
  • 11
9
votes
2 answers

Cocoapods specify podspec xcconfig value for Debug only

I am using cocoapods and want to specify a value in the pod's podspec using the xcconfig parameter that would be specific to Debug mode. currently, using : s.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "MY_DEFINE=1" } will set the value for…
Godfather
  • 1,089
  • 9
  • 21
9
votes
1 answer

Is there a way to fetch all license header from Cocoapods

I use Cocoapods to integrate my workspace. I have about 45 pods that I use in my project. I would like to attribute all the license headers and was wondering is there a way I can fetch and concatenate all the headers or should I do it manually?
Vig
  • 1,532
  • 1
  • 12
  • 28
8
votes
2 answers

Podspec s.vendored_frameworks not working

Maybe I misunderstood the way of s.ios.vendored_frameworks work but I'm trying to use/integrate the Sinch.framework in my own SDK (for the voip part) but in my ReplaceMe.swift I'm not able to import or use any stuff from it My hierarchy after I used…
Bryan D
  • 236
  • 1
  • 2
  • 13
8
votes
1 answer

Pod install fails for private pod being served as binary from private repo

I have a private pod and a private spec repo. I am serving the pod as a binary, i.e. the podspec says: s.source = { :http => 'https://github.com/COMPANY/PROJECT/releases/download/v1.0/PrivatePod.zip' } My Podfile has the following source…
i_am_jorf
  • 53,608
  • 15
  • 131
  • 222
8
votes
2 answers

fail to find header file when using Cocoapods version 1.0 - works fine with Cocoapods version 0.39

I'm trying to use libFLAC compiled to iOS in my project, using CocoaPod to install as a dependancy. The trouble is the workspace is created just fine if I use CocoaPod version 0.39 but there is a build error if I use CocoaPod version 1.0 (see below…
Iftah
  • 9,512
  • 2
  • 33
  • 45
8
votes
2 answers

pod spec lint: Attempt to read non existent folder

Trying to lint a local pod spec $ pod spec lint MyPod.podspec I'm getting [!] Attempt to read non existent folder /private/tmp/CocoaPods/Lint/Pods/MyPod. I checked /private/tmp/CocoaPods/Lint/Pods/ where I didn't find my podspec indeed, but I…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
7
votes
0 answers

No podspec found for `package` when adding iOS project to existing Ionic 5 project

I built a Capacitor plugin for Ionic and Capacitor and published it to NPM - call it test1. I then use it in my Ionic 5 project and successfully add a new Android project via: ionic build ionic cap add android ionic cap sync Tested it and it…
Tim
  • 91
  • 1
  • 5
7
votes
2 answers

Post_Install hook in .podspec file to change BUILD_LIBRARY_FOR_DISTRIBUTION to YES?

I have a private pod framework and it has some dependencies. I wanted to change BUILD_LIBRARY_FOR_DISTRIBUTION for all dependencies in that framework. In a Podfile, I have this post_install hook that does this work, but I wanted to know how can I do…
7
votes
3 answers

Xcode New Build System CocoaPods "Copy Pods Resources" has Assets.car in Output Files and conflict with "Copy Bundle Resources"

We are using new build system and Cocoapods 1.7.5 for our Xcode project. Our project (let's call it Y) is actually a development pod, but we also have written some codes to create an application demo (you know, to make builds faster and iterations…
Houston Duane
  • 163
  • 1
  • 9
7
votes
1 answer

How to ship dsym file with vendored framework through cocoapods in ios

I have created a vendored framework that I am shipping through cocoapods. Now I would like to ship the dsym file with the framework also, so that my crashes could be shown in console and included with the archived ipa's dsyms. I tried to copy the…
shivi_shub
  • 1,018
  • 1
  • 7
  • 15
1
2
3
24 25