Skip to content

Instantly share code, notes, and snippets.

View vincent284's full-sized avatar

Vincent Nguyen vincent284

  • Singapore
View GitHub Profile
@vincent284
vincent284 / cocoapods_disable_log.txt
Created December 22, 2016 09:35
[Cocoapods] Disable NSLog in pods
# Only allow NSLog in DEBUG build, for all Pods
# Referenced from https://gist.github.com/krzyzanowskim/7690635
# Pods-environment.h is no longer supported
post_install do | installer |
Dir.glob("#{installer.sandbox.target_support_files_root}/**/*.pch") do |item|
open(item, "a") do |file|
print "[post_install] Updating #{item}\n"
file.puts <<EOF
// Disable logs
#ifndef DEBUG