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
4
votes
1 answer

Resolve dependency in cocoapods, when library doesn't have a podspec published

I have a podspec, that depends on another library. That library doesn't have a spec published. What would be the best way to resolve the dependency in this case? The "dependency" keyword only allows referencing other specs, but not a repo outside…
camimvogelsang
  • 289
  • 1
  • 4
  • 10
3
votes
0 answers

How to add post_install script in my podspec file?

How can I add post_install script in podspec file of my custom cocoapod and execute code below? post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| …
3
votes
1 answer

Include XCFrameworks to a Podspec

I've got a static library, compiled for multiple architectures, included in a XCFramework. It looks like this : | framework_1.xcframework |---- _CodeSignature |---- Info.plist |---- ios-arm64_arm64e |---- Headers |----…
3
votes
0 answers

Flutter ios plugin with custom Frameworks

I have a flutter package git_bindings which requires certain ios Frameworks in order to work - libgit2, libssh, libssl and libcrypto. I have all these Frameworks compiled and ready. The code worked perfectly when it was all in one application, I'm…
Vishesh Handa
  • 1,830
  • 2
  • 14
  • 17
3
votes
2 answers

Unrecognized `swift_version` key

I can’t push a new version of my pod to the CocoaPods specs repository. Running pod trunk push MyPod.podspec results in the following error: [!] The Pod Specification did not pass validation. The following validation failed: - Warnings: Unrecognized…
Yakov Manshin
  • 664
  • 9
  • 24
3
votes
4 answers

iOS - cocoapods not updating

I have my own pod that i have uploaded to cocoa. I have uploaded new lined of code , i can see them in the repo , i can see them in the pod that is in the project but still they aren't executed. Pod spec: pod new code lines from the podspec: any…
ironRoei
  • 2,049
  • 24
  • 45
3
votes
1 answer

How to build a private CocoaPod with dependency on specific react-native version?

I'm trying to build a private cocoapod for my Cocoa Touch Framework (swift version 4.0), that has a dependency on React-Native v0.46.4 and Yoga, using this podspec: react_native_version = '0.46.4' Pod::Spec.new do |s|   s.name             =…
kyuss
  • 143
  • 8
3
votes
1 answer

Using a podspec variable in another variable

My podspec file looks something like: Pod::Spec.new do |s| s.name = "MyLib" s.version = "5.0.0" ... s.resource_bundles = {'MyBundle' => ["sdk-ios/publickey/prod/ios-5.0.0/somebinary.bin"]} end I am picking some binary file and…
3
votes
1 answer

Embedded Binaries in Cocoapods?

Is it somehow possible to embed a framework/binary in cocoapod? Didn't find any find on the internet. The source code of this binary/framework shouldn't be visible, for the users of the pod The option of embedding a binary is just lacking in…
denis631
  • 1,765
  • 3
  • 17
  • 38
3
votes
1 answer

Cocoapod bundle not available in my app

I'm creating my own pod with some resources files. It is basically defined like this : Pod::Spec.new do |s| s.name = 'MyName' s.version = '0.0.1' s.license = { :type => 'MIT' } s.homepage = 'not important' s.authors = { …
aimak
  • 540
  • 2
  • 12
3
votes
1 answer

Cocoapods Spec Access & Ownership Issue

For some reason my Cocoapods badge and access is failing to show version and platform. SwiftyVIPER: My pod shows up properly: https://cocoapods.org/pods/SwiftyVIPER However, my pod account shows no pods: https://cocoapods.org/owners/8966 These…
Cody Winton
  • 2,989
  • 5
  • 25
  • 48
3
votes
1 answer

Error with pod spec lint

I want to public a framework. I have created a pod spec in my framework directory, fill pod spec information, then type pod spec lint But it gives me error: -> KPImageView (1.0.0) - ERROR | [iOS] unknown: Encountered an unknown error ([!]…
Twitter khuong291
  • 11,328
  • 15
  • 80
  • 116
3
votes
1 answer

Podspec fails validation with valid Swift 3 syntax

I'm working on one of my projects (https://github.com/mamaral/Neon) that I've made available via CocoaPods, but since I've migrated to Swift 3.0 I've been unable to release this update as my podspec fails validation. The first example of one of the…
Mike
  • 9,765
  • 5
  • 34
  • 59
3
votes
2 answers

xcodebuild: Returned an unsuccessful exit code

The fight with the following error after pod spec lint BSTableViewReorder.podspec --verbose: === CLEAN TARGET BSTableViewReorder OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies “Use Legacy Swift Language Version” (SWIFT_VERSION)…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
3
votes
0 answers

Include static frameworks and libs on cocoapods

After spending hours, I definitely need your help. I want to create a pod including Spotify SDK (here, it's a .framework) and Deezer SDK (here, it's a *.a lib) in order to do some work with. Both SDK are written in Objective-C, and I want to write…
voidcome
  • 41
  • 2