Podfile
  • Written by Liang Zeng
  • June 3rd, 2014
  • About cocoapods

Podfile

基本信息

1.指定平台系统版本

platform :ios, '6.0'

2.单元测试

link_with ['Demo','DemoTests']

3.忽略Pods所有警告

inhibit_all_warnings!

3.工程配置

post_install do |installer_representation|
  installer_representation.project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
      config.build_settings['ARCHS'] = '$(ARCHS_STANDARD_32_BIT)'
    end
  end
end

使用iOS6风格的时候配置pods

网络请求

pod 'AFNetworking', '~> 2.2.4'

Block模块

pod 'UIActionSheet+Blocks', '~> 0.7'
pod 'UIAlertView+Blocks', '~> 0.7'
pod 'SHMessageUIBlocks', '~> 1.2.0'
pod 'RCLocationManager', '~> 0.1'

辅助模块

pod 'SVProgressHUD', '~> 1.0'
pod 'ProgressHUD', '~> 1.3'
pod 'MBProgressHUD', '~> 0.8'

pod 'UAAppReviewManager', '~> 0.2.1'
pod 'SVPullToRefresh', '~> 0.4.1'
pod 'SMXMLDocument', '~> 1.0.1'

pod 'UIColor-Hex', '~> 0.1.1'

UI

https://github.com/kevin-hirsch/KVNProgress

1.图片视频

pod 'IDMPhotoBrowser', '~> 1.3.5'
pod 'VKVideoPlayer', '~> 0.1.2'

2.侧滑菜单

pod 'MSDynamicsDrawerViewController', '~> 1.5.1'

4.动态二级栏目

pod 'XHScrollMenu', '~> 0.1.4'

5.TDD

target 'Example', :exclusive => true do
    pod "Example", :path => "../"
end

target 'Tests', :exclusive => true do #iOS8
    pod 'Specta', :git => 'https://github.com/specta/specta.git', :tag => 'v0.3.0.beta1'
    pod 'Expecta'
end

6.Podfile 指定路径

pod ’Specta’, :git => ’https://github.com/specta/specta.git’, :tag => ’v0.3.0.beta1’

7.weak

pod 'libextobjc', '~> 0.4'


@weakify(self);
self.a = 2;
self.testBlock = ^(int i) {
  @strongify(self)
    self.a = 3;
};
ObjcZL
Hey There!
What is This?