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

#if canImport() does not find frameworks with CocoaPods

Hello here is our Podspec which has a default_subspec and an optional subspec (which won't be taken since the default is already set). That subspec has more features, but takes an additional 8MB of size... `s.default_subspec = 'mainSDK' s.subspec…
Viktor Vostrikov
  • 1,322
  • 3
  • 19
  • 36
7
votes
1 answer

Define custom module map file in cocoapods Podspec

I made a custom module map file to handle the libxml import in a swift project. (non-modular include error) It's working great if I do it manually, but cocoapods won't find / resolve the module when I try to pod lint a simple project containing an…
Loegic
  • 3,390
  • 20
  • 33
6
votes
1 answer

I am getting " WARN | url: (homepage) The URL is not reachable." on iOS pod lib lint command?

When I am adding my private repo name in homepage url in .podspec file I am getting following warning, WARN | url: The URL (https://github.com/username/repo_name) is not reachable. I can't figure out how to fix it.
6
votes
3 answers

How to use local-only project via CocoaPods

I am struggling to find a way to package an Xcode framework we created as a Pod that would only be used internally (not public, not on github). How do I modify the .podspec to build the SDK from the local Xcode project on my development machine?
Granit
  • 1,261
  • 6
  • 19
  • 35
6
votes
5 answers

How to specify the CocoaPods repository branch in podfile

We can specify the CocoaPods repository by adding the below line in podfile source 'https://github.com/artsy/Specs.git' This points to the master branch. Is there any way we can specify the branch that we want to consume from the Cocoapods…
harshith__
  • 447
  • 3
  • 15
6
votes
1 answer

Development CocoaPod for both iOS and OSX

I've got a CocoaPod published for iOS and want to make it available on OS X as well. I've fixed up my PodSpec so that it's ready for both iOS and Mac OS X: Pod::Spec.new do |s| s.name = "EveryoneAPI" s.version = "0.9.5" …
Msencenb
  • 5,675
  • 11
  • 52
  • 84
6
votes
1 answer

pod repo lint error: [!] An unexpected version directory `` was encountered for the `` Pod in the `` repository

I am tryin to lint my pod spec and getting the following error. [!] An unexpected version directory 'ios' was encountered for the 'Classes' Pod in the 'Classes' repository. My source folders are set as follows: Classes - ios - osx Podspec has…
Ants
  • 1,338
  • 16
  • 27
5
votes
1 answer

Unable to find a specification for `ExpoModulesCore` depended upon by `Expo`

I am trying to add expo dependencies (media-library and mail-composer to be exact) to a React Native Project. I yarn added both dependencies as well as yarn add expo-modules@latest and yarn add expo-modules-core. Then I ran npx pod-install and just…
user18899735
5
votes
2 answers

What should be the Podspec file for using local .xcframework in React Native library?

I created a React Native library that is a wrapper for using the native iOS framework in the React Native Projects. Earlier I was using .framework & it was working fine. Now I am facing an issue in using this library with .xcframework instead of…
5
votes
1 answer

How to make a dynamic framework(Swift) based on two static libraries using Cocoapods

I want to make a dynamic framework that incorporates two 3-rd party frameworks with static libraries and later add it as a pod to my project. Here are their podspec files IndoorsSDK-iOS.podspec (By the way, this one lacks modulemap in .framework…
Sander
  • 1,325
  • 1
  • 11
  • 30
5
votes
1 answer

How to mix objective-c and swift to make a cocoapods framework

I'm creating a swift framework and I want to used an objective-c class in the framework. I used pod lib create frameworkName to create library. It's my podspec file: http://guides.cocoapods.org/syntax/podspec.html Pod::Spec.new do |s| s.name …
Vahid
  • 3,352
  • 2
  • 34
  • 42
5
votes
1 answer

Cocoapods | podspec add GoogleAnalytics as a dependency

I'm trying to add GoogleAnalytics as a dependency in my podspec like this : s.dependency "GoogleAnalytics" Of course I get : The 'Pods-****' target has transitive dependencies that include static binaries:…
Aximem
  • 714
  • 8
  • 27
5
votes
2 answers

Private cocoapod never shows update

I have a private cocoa pod which I have successfully built and included in my project. In my project's podfile, I add it as so: pod 'myPrivatePod', git: 'https://git.private.com/myPrivatePod.git' My podspec file is in the root of the project, I…
JDM
  • 883
  • 1
  • 8
  • 20
5
votes
1 answer

Bridging Header for Swift Pod with dependent Objective-C Pod?

I created a Swift pod (podspec) which depends on a pod written in Objective-C. In my podspec I use: s.dependency 'ObjectiveCPod', '~>3.2.1' To specify the dependent pod. To use it I need a bridging header being installed automatically when my…
Michael
  • 32,527
  • 49
  • 210
  • 370
5
votes
0 answers

Podspec with sources in subspecs does not get compiled

I am putting together a private podspec to build Lua specifically in version 5.1.5 and with a number of additions to Lua. The following podspec should correspond to our "manually put together"-code and provide Lua with openssl, socket and zlib…
CodeReaper
  • 5,988
  • 3
  • 35
  • 56
1 2
3
24 25