Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicating which pod in podspec needs to be binary or not #157

Open
iadcialim opened this issue Jan 13, 2022 · 0 comments
Open

Indicating which pod in podspec needs to be binary or not #157

iadcialim opened this issue Jan 13, 2022 · 0 comments

Comments

@iadcialim
Copy link

iadcialim commented Jan 13, 2022

I have this podspec of my library

Pod::Spec.new do |s|
  s.name             = 'LibName'
  ...
  s.dependency 'GRDB.swift', '4.0.1'
  s.dependency 'KeychainAccess', '4.2.2'
  s.dependency 'RxBluetoothKit', '7.0.1'

  end

In my client app project's Podfile, before Im using cocoapods-binary I refer to the pod dependencies like this

platform :ios, '13.0'

use_frameworks!
inhibit_all_warnings!

# https://github.com/leavez/cocoapods-binary
plugin 'cocoapods-binary'
keep_source_code_for_prebuilt_frameworks!

source 'https://github.com/CocoaPods/Specs.git'


def lib_pods
  podspec :path => '../path_to_podspec_file/LibName.podspec' 
end

target 'ClientApp' do
 
    pod 'Moya/RxSwift', '15.0.0-alpha.1', :binary => false
    
    lib_pods
end

But how to specify if for some reason I only want RxBluetoothKit to be in binary ?
My work around right now is to manually create like this

def lib_pods
 
    pod 'GRDB.swift', :binary => false
    pod 'KeychainAccess', :binary => false
    pod 'RxBluetoothKit', :binary => true

end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant