Cocoapods: Disable cocoapods-stats, options

Created on 18 Aug 2015  路  6Comments  路  Source: CocoaPods/CocoaPods

In certain strict security environments cocoapods-stats is not desirable. Often the networking is such that the stats plugin can't even access the outside world, unfortunately right now it 'hangs' while waiting for a timeout (I'm sure the corporate proxy is more to blame here for not following HTTP).

I'd like to get a list of ways to disable the stats plugin. I know of the environment variable, but I am hoping there is a project specific way to disable it.
Can bundler or rbenv be configured to not include the plugin or set the environment variable per project? Is there something we could add to the Podfile? Some kind of .cocoapods configuration?


  • Environment variable COCOAPODS_DISABLE_STATS set to true.
  • Podfile ENV variable

    ENV['COCOAPODS_DISABLE_STATS'] = "true"
    

Most helpful comment

@Ashton-W You should set the ENV variable as a string, this works:

# Disable sending stats
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

All 6 comments

You can set the env var in your Podfile

Anyways, this is a question rather than a bug report and belongs better over on SO. If there's a bug, that belongs over on the cocoapods-stats repo.

Can I rephrase it as 'Can't disable cocoapods-stats per project'?
I was hoping this would start a discussion as to how we can best support users that aren't in the ideal environment.

Just set the env var in the Podfile, that was my first suggestion.

@Ashton-W You should set the ENV variable as a string, this works:

# Disable sending stats
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

I updated his post :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pronebird picture pronebird  路  3Comments

steffendsommer picture steffendsommer  路  3Comments

Mingmingmew picture Mingmingmew  路  3Comments

iosdev-republicofapps picture iosdev-republicofapps  路  3Comments

luhui picture luhui  路  3Comments