Skip to content

Instantly share code, notes, and snippets.

@fabiopelosin
fabiopelosin / Output
Created January 17, 2013 22:26
This scripts prints out the a list of the command line tools used by Xcode. It provides insight to what Xcode does to process resource files.
-> CopyPNGFile
Copies a .png file resource, optionally compressing it.
$ copypng [options] $(IPHONE_OPTIMIZE_OPTIONS) [input] [output]
-> Code Sign
Code-sign a framework, application, or other built target.
$ /usr/bin/codesign
-> Strip Symbols
Remove or modify the symbol table of a Mach-O binary
@fabiopelosin
fabiopelosin / CocoaPodsBot.rb
Created December 2, 2013 22:14
Experimental CocoaPodsBot
#!/usr/bin/env ruby
# Experimental CocoaPodsBot
#
# Synopsis:
#
# The CocoaPodsBot performs a full lint (including xcodebuild) and prints a
# markdown message with the result of the lint.
#
# Usage:
@fabiopelosin
fabiopelosin / Post.md
Last active December 17, 2015 09:08
CocoaPods communication.

CocoaPods: YAML Specifications

Since version 0.17 CocoaPods support the YAML format for specifications. The YAML format is similar to the Ruby DSL with some minor adaptations.

To convert the Master repo we need your help to ensure that the transition is smooth. Please follow the below presented steps to help us identify any issue.

Testing

// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// AFHTTPRequestOperationLogger
#define COCOAPODS_POD_AVAILABLE_AFHTTPRequestOperationLogger TRUE
#
# uncrustify config file for objective-c and objective-c++
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos: absolute col, neg: relative column
indent_align_assign = FALSE

Podspec attributes

Overview

Root specification attributes

authors
name version
@fabiopelosin
fabiopelosin / New Lockfile.yaml
Created August 14, 2012 09:59
CocoaPods Lockfile
PODS:
- A2DynamicDelegate (2.0.1):
- libffi
- AFNetworking (1.0RC1)
- BlockAlertsAnd-ActionSheets (1.0.0)
- BlocksKit (1.5.1):
- A2DynamicDelegate
- DACircularProgress (2.0.0)
- DTCoreText (1.0.1)
- JMImageCache (0.2.1)
@fabiopelosin
fabiopelosin / CocoaPodsBot.rb
Created July 24, 2012 22:35
Experimental CocoaPodsBot
#!/usr/bin/env ruby
# Experimental CocoaPodsBot
#
# Synopsis:
#
# The CocoaPodsBot performs a full lint (including xcodebuild) and prints a
# markdown message with the result of the lint.
#
# Usage:
Pod::Spec.new do |s|
s.name = 'MKNetworkKit'
s.version = '0.83'
s.summary = 'Full ARC based Networking Kit for iOS 4+ devices.'
s.homepage = 'https://github.com/MugunthKumar/MKNetworkKit'
s.author = { 'MugunthKumar' => 'mknetworkkit@mk.sg' }
s.source = { :git => 'https://github.com/MugunthKumar/MKNetworkKit.git', :tag => 'v0.83' }
s.requires_arc = true
#s.prefix_header_contents = '#import "MKNetworkKit.h"'
s.header_mappings_dir = 'MKNetworkKit'
@fabiopelosin
fabiopelosin / gist:2385390
Created April 14, 2012 15:58
cat JBDeviceOwner.podspec
#
# Be sure to run `pod spec lint JBDeviceOwner.podspec' to ensure this is a
# valid spec.
#
# Remove all comments before submitting the spec.
#
Pod::Spec.new do |s|
# ――― REQUIRED VALUES ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #