Skip to content

Removing pod from specific configurations #9658

@Axadiw

Description

@Axadiw

Report

What did you do?

I've added

pod 'BugfenderSDK', '1.8', :configurations => ['Debug_dev', 'Release_dev']
pod 'Firebase/Crashlytics', '6.21.0', :configurations => ['Debug_dev', 'Release_dev']

to my Podfile and ran pod install command

What did you expect to happen?

Having BugfenderSDK and Firebase/Crashlytics frameworks embedded in final IPA files only when built with 'Debug_dev' and 'Release_dev' configurations.

What happened instead?

BugFenderSDK framework is indeed visible only in IPA'a built via 'Debug_dev' / 'Release_dev', but Firebase is visible on all possible configurations that I'm building my app.

CocoaPods Environment

Stack

   CocoaPods : 1.9.1
        Ruby : ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.3 (19D76)
       Xcode : 11.3.1 (11C505)
         Git : git version 2.25.0
Ruby lib dir : /Users/axadiw/.rbenv/versions/2.6.5/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ 590bdf0b22f980c4923a83e8a80bd034a1518c00

               trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /Users/axadiw/.rbenv/versions/2.6.5/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

Podfile

platform :ios, '12.0'
inhibit_all_warnings!
use_frameworks!

target 'MyProject' do
  pod 'FirebaseCrashlytics', '4.0.0-beta.6', :configurations => ['Debug_dev', 'Release_dev']
  pod 'BugfenderSDK', '1.8', :configurations => ['Debug_dev', 'Release_dev']
end

PS. Posted originally on firebase/firebase-ios-sdk#5217

Metadata

Metadata

Assignees

No one assigned

    Labels

    d2:moderateA moderately-difficult ticket that may require a bit of knowledge about the codebaset1:enhancementEnhancements that have not been picked up yet. Please comment if you plan to work on it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions