-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathXTSafeCollection.podspec
More file actions
34 lines (28 loc) · 1.54 KB
/
XTSafeCollection.podspec
File metadata and controls
34 lines (28 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Be sure to run `pod spec lint XTSafeCollection.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |s|
s.name = "XTSafeCollection"
s.version = "1.0.5"
s.summary = "An elegant solution to common crashes of NSArray, NSMutableArray and NSMutableDictionary."
s.description = <<-DESC
In Cocoa development, we often meet crashes like the follow:
1. `[NSArray objectAtIndex:]` when index exceeds array bounds.
2. `[NSMutableArray addObject]` when we attempt to add an nil Object.
...
XTSafeCollection provide a way to avoid these crashes. Just add the `XTSafeCollection.h`, `XTSafeCollection.m` to you project,
You event don't need to modify you codes, call the methods as what they are.
More: https://github.com/wuwen1030/XTSafeCollection.
DESC
s.homepage = "https://github.com/wuwen1030/XTSafeCollection"
s.license = { :type => "MIT" }
s.author = { "wuwen" => "wuwen.xb@alibaba-inc.com" }
s.platform = :ios
s.source = { :git => "https://github.com/wuwen1030/XTSafeCollection.git", :tag => "1.0.5" }
s.source_files = "XTSafeCollection/XTSafeCollection/*.{h,m}"
s.requires_arc = false
end