podspec

Cocoapods specify podspec xcconfig value for Debug only

萝らか妹 提交于 2019-12-04 07:49:46
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 both Debug and Release modes. Also tried using : s.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS[config=Debug]" => "MY_DEFINE=1" } but, altho this sets it in the pod's preprocessor macros, it doesn't seem to register during execution of the code, unlike when not using the [config=Debug] tag. Is there a way to limit it to Debug mode only? brunobowden You

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

♀尐吖头ヾ 提交于 2019-12-04 04:21:13
问题 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 library as a framework. In fact, when I run pod lib create MyLibrary , the initial project template they generate does have everything configured to be a framework, so that I can add a class to Development Pods/MyLibrary , and access methods of that

CocoaPods: point to a branch in pod spec

时间秒杀一切 提交于 2019-12-03 14:26:13
问题 I'm trying to install code from a repository's branch on a pod spec, and based on the documentation, this should work: s.dependency 'repository_name', :git => 'https://github.com/account_name/repository_name.git', :branch => 'experimental_branch' But I get an error with something like [!] Unsupported version requirements. Updating CocoaPods might fix the issue. It works when installing from a pod file directly: pod 'ObjectiveRecord', :git => 'https://github.com/supermarin/ObjectiveRecord.git'

Cocoa podspec and path for dependency

扶醉桌前 提交于 2019-12-03 11:03:11
how can I specify in podspec a local path for an dependency ? like : s.dependency 'MyLibrary', :path => '../MyLibrary' thanks You should use the :path keyword in your Podfile : pod 'AFNetworking', :path => '~/Documents/AFNetworking/AFNetworking.podspec' Tips: If you don't know the path, you can drag & drop the file in your Podfile and it will display it. EDIT I did not understand correctly what the OP was asking for, here is the correct answer: Put the local dependency inside your pod's folder root directory, In your Podspec file, just add s.ios.dependency 'YourPodName/YourPodDependencyFolder'

Removing Versions from CocoaPods Specs Repo

久未见 提交于 2019-12-02 22:20:53
I've just published a Beta version of a Pod in the Specs Repo, using pod trunk push . I would like to know if is there any way of removing this version Spec from the Spec Repo. I didn't find any way of doing this via the pod command. CocoaPods now provides a CLI for deleting pods, it can be done with: pod trunk delete PODNAME VERSION Original answer: Removing specs is highly discouraged. If you push a spec intending to remove it later you shouldn't push it in the first place. This is because if any users are using your spec as soon as you remove it their project will break. If this was an

running pod set up gives me “bad interpreter: No such file or directory”

China☆狼群 提交于 2019-12-02 18:17:56
recently tried to do pod setup and i get this: -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory I followed Ray Wenderlich's guide to install cocoapods and i get this issue so i have no idea what is going on. Torre Lasley I encountered this problem when upgrading to Mac OS High Sierra. This was my fix: sudo gem install cocoapods I found this answer on the CocoaPods issue list on Github . After upgraded to High Sierra, I got the same error, just reinstalled the cocoapods sudo gem install -n /usr/local/bin cocoapods Niraj Paul Same issue I was

running pod set up gives me “bad interpreter: No such file or directory”

不羁的心 提交于 2019-11-30 10:52:18
问题 recently tried to do pod setup and i get this: -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory I followed Ray Wenderlich's guide to install cocoapods and i get this issue so i have no idea what is going on. 回答1: I encountered this problem when upgrading to Mac OS High Sierra. This was my fix: sudo gem install cocoapods I found this answer on the CocoaPods issue list on Github. 回答2: After upgraded to High Sierra, I got the same error, just

#if canImport() does not find frameworks with CocoaPods

本小妞迷上赌 提交于 2019-11-28 13:41:35
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 'mainSDK' do |mainSDK| mainSDK.vendored_frameworks = 'mainSDK.framework' mainSDK.source_files = "mainSDK.framework/Headers/*.h" end s.subspec 'additionalSDK' do |additionalSDK| additionalSDK.source_files = "additionalSDK.framework/Headers/*.h" additionalSDK.vendored_frameworks =['additionalSDK.framework', 'mainSDK.framework'] end Now, in our mainSDK

#if canImport() does not find frameworks with CocoaPods

◇◆丶佛笑我妖孽 提交于 2019-11-27 07:56:31
问题 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 'mainSDK' do |mainSDK| mainSDK.vendored_frameworks = 'mainSDK.framework' mainSDK.source_files = "mainSDK.framework/Headers/*.h" end s.subspec 'additionalSDK' do |additionalSDK| additionalSDK.source_files = "additionalSDK.framework/Headers/*.h"