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
0 answers

pod spec lint validation fail : Unable to find matching .xcframework slice for the current build architectures (x86_64 i386)

I already have my framework in cocoapod, using xcframework with several framework inside : ios-arm64 ios-arm64_x86_64-maccatalyst ios-arm64_x86_64-simulator tvos-arm64 tvos-arm64_x86_64-simulator On my first push, I only put s.ios.deployment_target…
gamerounet
  • 279
  • 4
  • 22
4
votes
0 answers

File '*.swift' is part of module 'Module'; ignoring import

I am faced with warning that actually does nothing for me in this case, but is a bit anoying. The project is combined with several subprojects via Cocoapods, so the structure is Root folder Main project (that combines all the others and is used…
DenFav
  • 2,683
  • 1
  • 18
  • 27
4
votes
2 answers

CocoaPod - Podspec linting errors when using C++ in header files

I have an issue when linting headers file include C++. pod lib lint MyLibrary.podspec Here is my header file declare: #include #include #include #include I get the following error PathToMyHeader:31:10: fatal…
4
votes
2 answers

How do I create a cocoapod framework and add files to it?

I'm creating a private pod and would like it to be used as a module. According to Using Pod Lib Create, in CocoaPods.org: The first question you're asked is what language you want to build a pod in. For both choices CocoaPods will set up your…
Roger Oba
  • 1,292
  • 14
  • 28
4
votes
2 answers

CocoaPods podspec push without build simulator architecture

I built a podspec using vendored_libraries to contain third party libraries which are just built for real device. Then I pushed the podspec file and got error which said cocoapods could not found symbols for architecture i386 and x86_64 ,because the…
4
votes
0 answers

Creating a podspec file with local dependencies

I'm trying to wrap my code into a CocoaPod library ( for external use as a SDK ) but I'm experiencing some problems ( I'm new at this so I'm sorry if it doesn't make to much sense). Basically I'm using 3 pods ( Alamofire, MobilePlayer and…
4
votes
0 answers

Building Cocoapod library with GoogleMaps SDK

I want to use GoogleMaps in My Cocoapod library. There is GoogleMaps in cocoapod. but, you can't use dependency because it is static library. probably... I referenced this answer. Building a Cocoapod with Swift and dependency on Objective-C…
Daishi Nakajima
  • 1,932
  • 18
  • 26
4
votes
1 answer

How to correctly create a cocoa pod spec for a vendor framework

This question is in regards to podspec with vendor framework and use_frameworks! in the pod file I've created a Podspec for my framework (which contains swift and obj-c code). The aforementioned pod spec is for a vendor framework (i.e…
Avba
  • 14,822
  • 20
  • 92
  • 192
4
votes
2 answers

How to make cocoapods build for device only?

I'm trying to create a cocoa pod out of my Cocoa Touch Framework project. The project is not intended to support iOS simulator, only devices. It doesn't even compile for simulator. And it becomes a problem, because cocoapods tries (at least I think…
Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161
4
votes
5 answers

How to set the bundle identifier of a cocoapod

For a pod I have created, cocoapod set org.cocoapods as prefix for the bundle identifier of my pod: I would like to be able to set my own prefix but I did not find any option to do that in a podspec. Anyone knows if this option exists…
Sébastien
  • 327
  • 5
  • 15
4
votes
0 answers

prepare_command in podspec doesn't execute in the correct directory

I'm trying to execute a script from within prepare_command in my podspec. When I run pod install in the destination project directory the script is executed properly, but not in the project's Pods directory. Instead it's being run in…
CodyMace
  • 646
  • 1
  • 8
  • 19
4
votes
2 answers

Lint a Swift cocoa pod with SSZipArchive dependency

Anyone had any luck creating a pod with a SSZipArchive dependency? My classes are all in Swift but I'm including my bridging file as well (#import "SSZipArchive"). When I try to lint I get 9 errors all related to SSZipArchive. Please let know your…
Marc Nunes
  • 238
  • 3
  • 13
4
votes
1 answer

Adding a .a file to a project via CocoaPods

I am currently working on a project that is using CocoaPods. This is my first experience using them and would love some help with an issue we are having. We have multiple apps that use the same data models. Instead of duplicating code, we created a…
richari1987
  • 360
  • 2
  • 19
4
votes
0 answers

Not able to use cocoa pod in swift project

I am trying to use SlackTextViewController (https://github.com/slackhq/SlackTextViewController) in my app which is written in Swift. (I am following this -> https://stackoverflow.com/a/26467524/2852500) After pod install, everything works fine,…
jm.
  • 179
  • 1
  • 3
  • 13
4
votes
3 answers

Managing a private cocoapod with the same name of a public cocoapod

We have a private spec repo. One of our private pods has a dependency to another internal pod called CWFoundation (s.dependency 'CWFoundation', '~> 0.0.1'). The podspec of CWFoundation is only a way of using CWFoundation from jayway…
Carlos
  • 1,121
  • 12
  • 26