xcodeproj_utils 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/.travis.yml +10 -0
- data/Gemfile +5 -0
- data/README.md +2 -0
- data/Rakefile +5 -0
- data/lib/xcodeproj_utils.rb +1 -1
- data/lib/xcodeproj_utils/version.rb +1 -1
- data/spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.pbxproj +475 -0
- data/spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.xcworkspace/xcuserdata/taichino.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- data/spec/fixtures/RSpecTest/RSpecTest.xcodeproj/xcuserdata/taichino.xcuserdatad/xcschemes/RSpecTest.xcscheme +96 -0
- data/spec/fixtures/RSpecTest/RSpecTest.xcodeproj/xcuserdata/taichino.xcuserdatad/xcschemes/xcschememanagement.plist +27 -0
- data/spec/fixtures/RSpecTest/RSpecTest/AppDelegate.h +15 -0
- data/spec/fixtures/RSpecTest/RSpecTest/AppDelegate.m +46 -0
- data/spec/fixtures/RSpecTest/RSpecTest/Base.lproj/Main.storyboard +26 -0
- data/spec/fixtures/RSpecTest/RSpecTest/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/fixtures/RSpecTest/RSpecTest/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/fixtures/RSpecTest/RSpecTest/RSpecTest-Info.plist +40 -0
- data/spec/fixtures/RSpecTest/RSpecTest/RSpecTest-Prefix.pch +16 -0
- data/spec/fixtures/RSpecTest/RSpecTest/ViewController.h +13 -0
- data/spec/fixtures/RSpecTest/RSpecTest/ViewController.m +29 -0
- data/spec/fixtures/RSpecTest/RSpecTest/en.lproj/InfoPlist.strings +2 -0
- data/spec/fixtures/RSpecTest/RSpecTest/main.m +18 -0
- data/spec/fixtures/RSpecTest/RSpecTestTests/RSpecTestTests-Info.plist +22 -0
- data/spec/fixtures/RSpecTest/RSpecTestTests/RSpecTestTests.m +34 -0
- data/spec/fixtures/RSpecTest/RSpecTestTests/en.lproj/InfoPlist.strings +2 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/xcodeproj_utils_spec.rb +19 -0
- metadata +47 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5eaf899741ae5603a86ed4343bf3ef77ff099ccd
|
4
|
+
data.tar.gz: 68f8512591c8998109d201cc6c9eb452491a3b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aa4f288216992176daebea2f0785974d03c20197f1a94a1f2240d45b6955545e4dda6b2cf99dc8e76c917a5dfd85ad768c768aa7d2c2d28efc9b748fa19d51a
|
7
|
+
data.tar.gz: 4c2546ce9042cf53b0b9836fa342f70450ee0f5a20c2054af03fdb8271c2f8f6081663250bfdb2a018290ed42d8abe9bec7e80e6a3e6e60da21dbcbce296a0ab
|
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
language: objective-c
|
2
|
+
env:
|
3
|
+
matrix:
|
4
|
+
- RVM_RUBY_VERSION=2.0 NOEXEC_DISABLE=1 CI=true TRAVIS=true CI_BRANCH=master
|
5
|
+
global:
|
6
|
+
- service_name: travis-ci
|
7
|
+
- secure: bSjGR/anbf1WDf0cOIjwIXzod5q3elm5D6dB9x4tECB0CbGm9DUP196Nlx6TaBHXyZQHP4raGLYwA8tBCZwGZg06fanmb7V436RRGJZC/z+ZiWwtX2z0AdYcgsQBFJmaRdTMFaC2AncSvW2wkq9RCormbfuNxLtUjgqtXOc1PI0=
|
8
|
+
before_install: source "$HOME/.rvm/scripts/rvm" && rvm use $RVM_RUBY_VERSION
|
9
|
+
install: sudo gem install bundler --no-ri --no-rdoc && bundle install --without=documentation
|
10
|
+
script: bundle exec rake spec
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# XcodeprojUtils
|
2
|
+
[![Build Status](https://travis-ci.org/taichino/xcodeproj_utils.png?branch=master)](https://travis-ci.org/taichino/xcodeproj_utils)
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/taichino/xcodeproj_utils/badge.png?branch=master)](https://coveralls.io/r/taichino/xcodeproj_utils?branch=master)
|
2
4
|
|
3
5
|
Util commands for xcode project. Following commands are supported for now.
|
4
6
|
|
data/Rakefile
CHANGED
data/lib/xcodeproj_utils.rb
CHANGED
@@ -11,7 +11,7 @@ module XcodeprojUtils
|
|
11
11
|
@target = t
|
12
12
|
break
|
13
13
|
end
|
14
|
-
raise ArgumentError, "#{target_name} is not found in #{proj_name}" if
|
14
|
+
raise ArgumentError, "#{target_name} is not found in #{proj_name}" if @target.empty?
|
15
15
|
end
|
16
16
|
|
17
17
|
def wc(header_only=false, source_only=false)
|
@@ -0,0 +1,475 @@
|
|
1
|
+
// !$*UTF8*$!
|
2
|
+
{
|
3
|
+
archiveVersion = 1;
|
4
|
+
classes = {
|
5
|
+
};
|
6
|
+
objectVersion = 46;
|
7
|
+
objects = {
|
8
|
+
|
9
|
+
/* Begin PBXBuildFile section */
|
10
|
+
611658AD18B129BF00616E4C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 611658AC18B129BF00616E4C /* Foundation.framework */; };
|
11
|
+
611658AF18B129BF00616E4C /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 611658AE18B129BF00616E4C /* CoreGraphics.framework */; };
|
12
|
+
611658B118B129BF00616E4C /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 611658B018B129BF00616E4C /* UIKit.framework */; };
|
13
|
+
611658B718B129BF00616E4C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 611658B518B129BF00616E4C /* InfoPlist.strings */; };
|
14
|
+
611658B918B129BF00616E4C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 611658B818B129BF00616E4C /* main.m */; };
|
15
|
+
611658BD18B129BF00616E4C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 611658BC18B129BF00616E4C /* AppDelegate.m */; };
|
16
|
+
611658C018B129BF00616E4C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 611658BE18B129BF00616E4C /* Main.storyboard */; };
|
17
|
+
611658C318B129BF00616E4C /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 611658C218B129BF00616E4C /* ViewController.m */; };
|
18
|
+
611658C518B129BF00616E4C /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 611658C418B129BF00616E4C /* Images.xcassets */; };
|
19
|
+
611658CC18B129BF00616E4C /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 611658CB18B129BF00616E4C /* XCTest.framework */; };
|
20
|
+
611658CD18B129BF00616E4C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 611658AC18B129BF00616E4C /* Foundation.framework */; };
|
21
|
+
611658CE18B129BF00616E4C /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 611658B018B129BF00616E4C /* UIKit.framework */; };
|
22
|
+
611658D618B129BF00616E4C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 611658D418B129BF00616E4C /* InfoPlist.strings */; };
|
23
|
+
611658D818B129BF00616E4C /* RSpecTestTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 611658D718B129BF00616E4C /* RSpecTestTests.m */; };
|
24
|
+
/* End PBXBuildFile section */
|
25
|
+
|
26
|
+
/* Begin PBXContainerItemProxy section */
|
27
|
+
611658CF18B129BF00616E4C /* PBXContainerItemProxy */ = {
|
28
|
+
isa = PBXContainerItemProxy;
|
29
|
+
containerPortal = 611658A118B129BF00616E4C /* Project object */;
|
30
|
+
proxyType = 1;
|
31
|
+
remoteGlobalIDString = 611658A818B129BF00616E4C;
|
32
|
+
remoteInfo = RSpecTest;
|
33
|
+
};
|
34
|
+
/* End PBXContainerItemProxy section */
|
35
|
+
|
36
|
+
/* Begin PBXFileReference section */
|
37
|
+
611658A918B129BF00616E4C /* RSpecTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RSpecTest.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
38
|
+
611658AC18B129BF00616E4C /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
39
|
+
611658AE18B129BF00616E4C /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
40
|
+
611658B018B129BF00616E4C /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
41
|
+
611658B418B129BF00616E4C /* RSpecTest-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "RSpecTest-Info.plist"; sourceTree = "<group>"; };
|
42
|
+
611658B618B129BF00616E4C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
43
|
+
611658B818B129BF00616E4C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
44
|
+
611658BA18B129BF00616E4C /* RSpecTest-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RSpecTest-Prefix.pch"; sourceTree = "<group>"; };
|
45
|
+
611658BB18B129BF00616E4C /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
46
|
+
611658BC18B129BF00616E4C /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
|
47
|
+
611658BF18B129BF00616E4C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
48
|
+
611658C118B129BF00616E4C /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
|
49
|
+
611658C218B129BF00616E4C /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
|
50
|
+
611658C418B129BF00616E4C /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
|
51
|
+
611658CA18B129BF00616E4C /* RSpecTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RSpecTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
52
|
+
611658CB18B129BF00616E4C /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
|
53
|
+
611658D318B129BF00616E4C /* RSpecTestTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "RSpecTestTests-Info.plist"; sourceTree = "<group>"; };
|
54
|
+
611658D518B129BF00616E4C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
55
|
+
611658D718B129BF00616E4C /* RSpecTestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSpecTestTests.m; sourceTree = "<group>"; };
|
56
|
+
/* End PBXFileReference section */
|
57
|
+
|
58
|
+
/* Begin PBXFrameworksBuildPhase section */
|
59
|
+
611658A618B129BF00616E4C /* Frameworks */ = {
|
60
|
+
isa = PBXFrameworksBuildPhase;
|
61
|
+
buildActionMask = 2147483647;
|
62
|
+
files = (
|
63
|
+
611658AF18B129BF00616E4C /* CoreGraphics.framework in Frameworks */,
|
64
|
+
611658B118B129BF00616E4C /* UIKit.framework in Frameworks */,
|
65
|
+
611658AD18B129BF00616E4C /* Foundation.framework in Frameworks */,
|
66
|
+
);
|
67
|
+
runOnlyForDeploymentPostprocessing = 0;
|
68
|
+
};
|
69
|
+
611658C718B129BF00616E4C /* Frameworks */ = {
|
70
|
+
isa = PBXFrameworksBuildPhase;
|
71
|
+
buildActionMask = 2147483647;
|
72
|
+
files = (
|
73
|
+
611658CC18B129BF00616E4C /* XCTest.framework in Frameworks */,
|
74
|
+
611658CE18B129BF00616E4C /* UIKit.framework in Frameworks */,
|
75
|
+
611658CD18B129BF00616E4C /* Foundation.framework in Frameworks */,
|
76
|
+
);
|
77
|
+
runOnlyForDeploymentPostprocessing = 0;
|
78
|
+
};
|
79
|
+
/* End PBXFrameworksBuildPhase section */
|
80
|
+
|
81
|
+
/* Begin PBXGroup section */
|
82
|
+
611658A018B129BF00616E4C = {
|
83
|
+
isa = PBXGroup;
|
84
|
+
children = (
|
85
|
+
611658B218B129BF00616E4C /* RSpecTest */,
|
86
|
+
611658D118B129BF00616E4C /* RSpecTestTests */,
|
87
|
+
611658AB18B129BF00616E4C /* Frameworks */,
|
88
|
+
611658AA18B129BF00616E4C /* Products */,
|
89
|
+
);
|
90
|
+
sourceTree = "<group>";
|
91
|
+
};
|
92
|
+
611658AA18B129BF00616E4C /* Products */ = {
|
93
|
+
isa = PBXGroup;
|
94
|
+
children = (
|
95
|
+
611658A918B129BF00616E4C /* RSpecTest.app */,
|
96
|
+
611658CA18B129BF00616E4C /* RSpecTestTests.xctest */,
|
97
|
+
);
|
98
|
+
name = Products;
|
99
|
+
sourceTree = "<group>";
|
100
|
+
};
|
101
|
+
611658AB18B129BF00616E4C /* Frameworks */ = {
|
102
|
+
isa = PBXGroup;
|
103
|
+
children = (
|
104
|
+
611658AC18B129BF00616E4C /* Foundation.framework */,
|
105
|
+
611658AE18B129BF00616E4C /* CoreGraphics.framework */,
|
106
|
+
611658B018B129BF00616E4C /* UIKit.framework */,
|
107
|
+
611658CB18B129BF00616E4C /* XCTest.framework */,
|
108
|
+
);
|
109
|
+
name = Frameworks;
|
110
|
+
sourceTree = "<group>";
|
111
|
+
};
|
112
|
+
611658B218B129BF00616E4C /* RSpecTest */ = {
|
113
|
+
isa = PBXGroup;
|
114
|
+
children = (
|
115
|
+
611658BB18B129BF00616E4C /* AppDelegate.h */,
|
116
|
+
611658BC18B129BF00616E4C /* AppDelegate.m */,
|
117
|
+
611658BE18B129BF00616E4C /* Main.storyboard */,
|
118
|
+
611658C118B129BF00616E4C /* ViewController.h */,
|
119
|
+
611658C218B129BF00616E4C /* ViewController.m */,
|
120
|
+
611658C418B129BF00616E4C /* Images.xcassets */,
|
121
|
+
611658B318B129BF00616E4C /* Supporting Files */,
|
122
|
+
);
|
123
|
+
path = RSpecTest;
|
124
|
+
sourceTree = "<group>";
|
125
|
+
};
|
126
|
+
611658B318B129BF00616E4C /* Supporting Files */ = {
|
127
|
+
isa = PBXGroup;
|
128
|
+
children = (
|
129
|
+
611658B418B129BF00616E4C /* RSpecTest-Info.plist */,
|
130
|
+
611658B518B129BF00616E4C /* InfoPlist.strings */,
|
131
|
+
611658B818B129BF00616E4C /* main.m */,
|
132
|
+
611658BA18B129BF00616E4C /* RSpecTest-Prefix.pch */,
|
133
|
+
);
|
134
|
+
name = "Supporting Files";
|
135
|
+
sourceTree = "<group>";
|
136
|
+
};
|
137
|
+
611658D118B129BF00616E4C /* RSpecTestTests */ = {
|
138
|
+
isa = PBXGroup;
|
139
|
+
children = (
|
140
|
+
611658D718B129BF00616E4C /* RSpecTestTests.m */,
|
141
|
+
611658D218B129BF00616E4C /* Supporting Files */,
|
142
|
+
);
|
143
|
+
path = RSpecTestTests;
|
144
|
+
sourceTree = "<group>";
|
145
|
+
};
|
146
|
+
611658D218B129BF00616E4C /* Supporting Files */ = {
|
147
|
+
isa = PBXGroup;
|
148
|
+
children = (
|
149
|
+
611658D318B129BF00616E4C /* RSpecTestTests-Info.plist */,
|
150
|
+
611658D418B129BF00616E4C /* InfoPlist.strings */,
|
151
|
+
);
|
152
|
+
name = "Supporting Files";
|
153
|
+
sourceTree = "<group>";
|
154
|
+
};
|
155
|
+
/* End PBXGroup section */
|
156
|
+
|
157
|
+
/* Begin PBXNativeTarget section */
|
158
|
+
611658A818B129BF00616E4C /* RSpecTest */ = {
|
159
|
+
isa = PBXNativeTarget;
|
160
|
+
buildConfigurationList = 611658DB18B129BF00616E4C /* Build configuration list for PBXNativeTarget "RSpecTest" */;
|
161
|
+
buildPhases = (
|
162
|
+
611658A518B129BF00616E4C /* Sources */,
|
163
|
+
611658A618B129BF00616E4C /* Frameworks */,
|
164
|
+
611658A718B129BF00616E4C /* Resources */,
|
165
|
+
);
|
166
|
+
buildRules = (
|
167
|
+
);
|
168
|
+
dependencies = (
|
169
|
+
);
|
170
|
+
name = RSpecTest;
|
171
|
+
productName = RSpecTest;
|
172
|
+
productReference = 611658A918B129BF00616E4C /* RSpecTest.app */;
|
173
|
+
productType = "com.apple.product-type.application";
|
174
|
+
};
|
175
|
+
611658C918B129BF00616E4C /* RSpecTestTests */ = {
|
176
|
+
isa = PBXNativeTarget;
|
177
|
+
buildConfigurationList = 611658DE18B129BF00616E4C /* Build configuration list for PBXNativeTarget "RSpecTestTests" */;
|
178
|
+
buildPhases = (
|
179
|
+
611658C618B129BF00616E4C /* Sources */,
|
180
|
+
611658C718B129BF00616E4C /* Frameworks */,
|
181
|
+
611658C818B129BF00616E4C /* Resources */,
|
182
|
+
);
|
183
|
+
buildRules = (
|
184
|
+
);
|
185
|
+
dependencies = (
|
186
|
+
611658D018B129BF00616E4C /* PBXTargetDependency */,
|
187
|
+
);
|
188
|
+
name = RSpecTestTests;
|
189
|
+
productName = RSpecTestTests;
|
190
|
+
productReference = 611658CA18B129BF00616E4C /* RSpecTestTests.xctest */;
|
191
|
+
productType = "com.apple.product-type.bundle.unit-test";
|
192
|
+
};
|
193
|
+
/* End PBXNativeTarget section */
|
194
|
+
|
195
|
+
/* Begin PBXProject section */
|
196
|
+
611658A118B129BF00616E4C /* Project object */ = {
|
197
|
+
isa = PBXProject;
|
198
|
+
attributes = {
|
199
|
+
LastUpgradeCheck = 0500;
|
200
|
+
ORGANIZATIONNAME = taichino.com;
|
201
|
+
TargetAttributes = {
|
202
|
+
611658C918B129BF00616E4C = {
|
203
|
+
TestTargetID = 611658A818B129BF00616E4C;
|
204
|
+
};
|
205
|
+
};
|
206
|
+
};
|
207
|
+
buildConfigurationList = 611658A418B129BF00616E4C /* Build configuration list for PBXProject "RSpecTest" */;
|
208
|
+
compatibilityVersion = "Xcode 3.2";
|
209
|
+
developmentRegion = English;
|
210
|
+
hasScannedForEncodings = 0;
|
211
|
+
knownRegions = (
|
212
|
+
en,
|
213
|
+
Base,
|
214
|
+
);
|
215
|
+
mainGroup = 611658A018B129BF00616E4C;
|
216
|
+
productRefGroup = 611658AA18B129BF00616E4C /* Products */;
|
217
|
+
projectDirPath = "";
|
218
|
+
projectRoot = "";
|
219
|
+
targets = (
|
220
|
+
611658A818B129BF00616E4C /* RSpecTest */,
|
221
|
+
611658C918B129BF00616E4C /* RSpecTestTests */,
|
222
|
+
);
|
223
|
+
};
|
224
|
+
/* End PBXProject section */
|
225
|
+
|
226
|
+
/* Begin PBXResourcesBuildPhase section */
|
227
|
+
611658A718B129BF00616E4C /* Resources */ = {
|
228
|
+
isa = PBXResourcesBuildPhase;
|
229
|
+
buildActionMask = 2147483647;
|
230
|
+
files = (
|
231
|
+
611658C518B129BF00616E4C /* Images.xcassets in Resources */,
|
232
|
+
611658B718B129BF00616E4C /* InfoPlist.strings in Resources */,
|
233
|
+
611658C018B129BF00616E4C /* Main.storyboard in Resources */,
|
234
|
+
);
|
235
|
+
runOnlyForDeploymentPostprocessing = 0;
|
236
|
+
};
|
237
|
+
611658C818B129BF00616E4C /* Resources */ = {
|
238
|
+
isa = PBXResourcesBuildPhase;
|
239
|
+
buildActionMask = 2147483647;
|
240
|
+
files = (
|
241
|
+
611658D618B129BF00616E4C /* InfoPlist.strings in Resources */,
|
242
|
+
);
|
243
|
+
runOnlyForDeploymentPostprocessing = 0;
|
244
|
+
};
|
245
|
+
/* End PBXResourcesBuildPhase section */
|
246
|
+
|
247
|
+
/* Begin PBXSourcesBuildPhase section */
|
248
|
+
611658A518B129BF00616E4C /* Sources */ = {
|
249
|
+
isa = PBXSourcesBuildPhase;
|
250
|
+
buildActionMask = 2147483647;
|
251
|
+
files = (
|
252
|
+
611658C318B129BF00616E4C /* ViewController.m in Sources */,
|
253
|
+
611658BD18B129BF00616E4C /* AppDelegate.m in Sources */,
|
254
|
+
611658B918B129BF00616E4C /* main.m in Sources */,
|
255
|
+
);
|
256
|
+
runOnlyForDeploymentPostprocessing = 0;
|
257
|
+
};
|
258
|
+
611658C618B129BF00616E4C /* Sources */ = {
|
259
|
+
isa = PBXSourcesBuildPhase;
|
260
|
+
buildActionMask = 2147483647;
|
261
|
+
files = (
|
262
|
+
611658D818B129BF00616E4C /* RSpecTestTests.m in Sources */,
|
263
|
+
);
|
264
|
+
runOnlyForDeploymentPostprocessing = 0;
|
265
|
+
};
|
266
|
+
/* End PBXSourcesBuildPhase section */
|
267
|
+
|
268
|
+
/* Begin PBXTargetDependency section */
|
269
|
+
611658D018B129BF00616E4C /* PBXTargetDependency */ = {
|
270
|
+
isa = PBXTargetDependency;
|
271
|
+
target = 611658A818B129BF00616E4C /* RSpecTest */;
|
272
|
+
targetProxy = 611658CF18B129BF00616E4C /* PBXContainerItemProxy */;
|
273
|
+
};
|
274
|
+
/* End PBXTargetDependency section */
|
275
|
+
|
276
|
+
/* Begin PBXVariantGroup section */
|
277
|
+
611658B518B129BF00616E4C /* InfoPlist.strings */ = {
|
278
|
+
isa = PBXVariantGroup;
|
279
|
+
children = (
|
280
|
+
611658B618B129BF00616E4C /* en */,
|
281
|
+
);
|
282
|
+
name = InfoPlist.strings;
|
283
|
+
sourceTree = "<group>";
|
284
|
+
};
|
285
|
+
611658BE18B129BF00616E4C /* Main.storyboard */ = {
|
286
|
+
isa = PBXVariantGroup;
|
287
|
+
children = (
|
288
|
+
611658BF18B129BF00616E4C /* Base */,
|
289
|
+
);
|
290
|
+
name = Main.storyboard;
|
291
|
+
sourceTree = "<group>";
|
292
|
+
};
|
293
|
+
611658D418B129BF00616E4C /* InfoPlist.strings */ = {
|
294
|
+
isa = PBXVariantGroup;
|
295
|
+
children = (
|
296
|
+
611658D518B129BF00616E4C /* en */,
|
297
|
+
);
|
298
|
+
name = InfoPlist.strings;
|
299
|
+
sourceTree = "<group>";
|
300
|
+
};
|
301
|
+
/* End PBXVariantGroup section */
|
302
|
+
|
303
|
+
/* Begin XCBuildConfiguration section */
|
304
|
+
611658D918B129BF00616E4C /* Debug */ = {
|
305
|
+
isa = XCBuildConfiguration;
|
306
|
+
buildSettings = {
|
307
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
308
|
+
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
309
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
310
|
+
CLANG_CXX_LIBRARY = "libc++";
|
311
|
+
CLANG_ENABLE_MODULES = YES;
|
312
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
313
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
314
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
315
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
316
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
317
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
318
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
319
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
320
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
321
|
+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
322
|
+
COPY_PHASE_STRIP = NO;
|
323
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
324
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
325
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
326
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
327
|
+
"DEBUG=1",
|
328
|
+
"$(inherited)",
|
329
|
+
);
|
330
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
331
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
332
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
333
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
334
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
335
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
336
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
337
|
+
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
338
|
+
ONLY_ACTIVE_ARCH = YES;
|
339
|
+
SDKROOT = iphoneos;
|
340
|
+
};
|
341
|
+
name = Debug;
|
342
|
+
};
|
343
|
+
611658DA18B129BF00616E4C /* Release */ = {
|
344
|
+
isa = XCBuildConfiguration;
|
345
|
+
buildSettings = {
|
346
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
347
|
+
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
348
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
349
|
+
CLANG_CXX_LIBRARY = "libc++";
|
350
|
+
CLANG_ENABLE_MODULES = YES;
|
351
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
352
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
353
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
354
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
355
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
356
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
357
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
358
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
359
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
360
|
+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
361
|
+
COPY_PHASE_STRIP = YES;
|
362
|
+
ENABLE_NS_ASSERTIONS = NO;
|
363
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
364
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
365
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
366
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
367
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
368
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
369
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
370
|
+
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
371
|
+
SDKROOT = iphoneos;
|
372
|
+
VALIDATE_PRODUCT = YES;
|
373
|
+
};
|
374
|
+
name = Release;
|
375
|
+
};
|
376
|
+
611658DC18B129BF00616E4C /* Debug */ = {
|
377
|
+
isa = XCBuildConfiguration;
|
378
|
+
buildSettings = {
|
379
|
+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
380
|
+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
|
381
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
382
|
+
GCC_PREFIX_HEADER = "RSpecTest/RSpecTest-Prefix.pch";
|
383
|
+
INFOPLIST_FILE = "RSpecTest/RSpecTest-Info.plist";
|
384
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
385
|
+
WRAPPER_EXTENSION = app;
|
386
|
+
};
|
387
|
+
name = Debug;
|
388
|
+
};
|
389
|
+
611658DD18B129BF00616E4C /* Release */ = {
|
390
|
+
isa = XCBuildConfiguration;
|
391
|
+
buildSettings = {
|
392
|
+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
393
|
+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
|
394
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
395
|
+
GCC_PREFIX_HEADER = "RSpecTest/RSpecTest-Prefix.pch";
|
396
|
+
INFOPLIST_FILE = "RSpecTest/RSpecTest-Info.plist";
|
397
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
398
|
+
WRAPPER_EXTENSION = app;
|
399
|
+
};
|
400
|
+
name = Release;
|
401
|
+
};
|
402
|
+
611658DF18B129BF00616E4C /* Debug */ = {
|
403
|
+
isa = XCBuildConfiguration;
|
404
|
+
buildSettings = {
|
405
|
+
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
406
|
+
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/RSpecTest.app/RSpecTest";
|
407
|
+
FRAMEWORK_SEARCH_PATHS = (
|
408
|
+
"$(SDKROOT)/Developer/Library/Frameworks",
|
409
|
+
"$(inherited)",
|
410
|
+
"$(DEVELOPER_FRAMEWORKS_DIR)",
|
411
|
+
);
|
412
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
413
|
+
GCC_PREFIX_HEADER = "RSpecTest/RSpecTest-Prefix.pch";
|
414
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
415
|
+
"DEBUG=1",
|
416
|
+
"$(inherited)",
|
417
|
+
);
|
418
|
+
INFOPLIST_FILE = "RSpecTestTests/RSpecTestTests-Info.plist";
|
419
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
420
|
+
TEST_HOST = "$(BUNDLE_LOADER)";
|
421
|
+
WRAPPER_EXTENSION = xctest;
|
422
|
+
};
|
423
|
+
name = Debug;
|
424
|
+
};
|
425
|
+
611658E018B129BF00616E4C /* Release */ = {
|
426
|
+
isa = XCBuildConfiguration;
|
427
|
+
buildSettings = {
|
428
|
+
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
429
|
+
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/RSpecTest.app/RSpecTest";
|
430
|
+
FRAMEWORK_SEARCH_PATHS = (
|
431
|
+
"$(SDKROOT)/Developer/Library/Frameworks",
|
432
|
+
"$(inherited)",
|
433
|
+
"$(DEVELOPER_FRAMEWORKS_DIR)",
|
434
|
+
);
|
435
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
436
|
+
GCC_PREFIX_HEADER = "RSpecTest/RSpecTest-Prefix.pch";
|
437
|
+
INFOPLIST_FILE = "RSpecTestTests/RSpecTestTests-Info.plist";
|
438
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
439
|
+
TEST_HOST = "$(BUNDLE_LOADER)";
|
440
|
+
WRAPPER_EXTENSION = xctest;
|
441
|
+
};
|
442
|
+
name = Release;
|
443
|
+
};
|
444
|
+
/* End XCBuildConfiguration section */
|
445
|
+
|
446
|
+
/* Begin XCConfigurationList section */
|
447
|
+
611658A418B129BF00616E4C /* Build configuration list for PBXProject "RSpecTest" */ = {
|
448
|
+
isa = XCConfigurationList;
|
449
|
+
buildConfigurations = (
|
450
|
+
611658D918B129BF00616E4C /* Debug */,
|
451
|
+
611658DA18B129BF00616E4C /* Release */,
|
452
|
+
);
|
453
|
+
defaultConfigurationIsVisible = 0;
|
454
|
+
defaultConfigurationName = Release;
|
455
|
+
};
|
456
|
+
611658DB18B129BF00616E4C /* Build configuration list for PBXNativeTarget "RSpecTest" */ = {
|
457
|
+
isa = XCConfigurationList;
|
458
|
+
buildConfigurations = (
|
459
|
+
611658DC18B129BF00616E4C /* Debug */,
|
460
|
+
611658DD18B129BF00616E4C /* Release */,
|
461
|
+
);
|
462
|
+
defaultConfigurationIsVisible = 0;
|
463
|
+
};
|
464
|
+
611658DE18B129BF00616E4C /* Build configuration list for PBXNativeTarget "RSpecTestTests" */ = {
|
465
|
+
isa = XCConfigurationList;
|
466
|
+
buildConfigurations = (
|
467
|
+
611658DF18B129BF00616E4C /* Debug */,
|
468
|
+
611658E018B129BF00616E4C /* Release */,
|
469
|
+
);
|
470
|
+
defaultConfigurationIsVisible = 0;
|
471
|
+
};
|
472
|
+
/* End XCConfigurationList section */
|
473
|
+
};
|
474
|
+
rootObject = 611658A118B129BF00616E4C /* Project object */;
|
475
|
+
}
|
Binary file
|
@@ -0,0 +1,96 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Scheme
|
3
|
+
LastUpgradeVersion = "0500"
|
4
|
+
version = "1.3">
|
5
|
+
<BuildAction
|
6
|
+
parallelizeBuildables = "YES"
|
7
|
+
buildImplicitDependencies = "YES">
|
8
|
+
<BuildActionEntries>
|
9
|
+
<BuildActionEntry
|
10
|
+
buildForTesting = "YES"
|
11
|
+
buildForRunning = "YES"
|
12
|
+
buildForProfiling = "YES"
|
13
|
+
buildForArchiving = "YES"
|
14
|
+
buildForAnalyzing = "YES">
|
15
|
+
<BuildableReference
|
16
|
+
BuildableIdentifier = "primary"
|
17
|
+
BlueprintIdentifier = "611658A818B129BF00616E4C"
|
18
|
+
BuildableName = "RSpecTest.app"
|
19
|
+
BlueprintName = "RSpecTest"
|
20
|
+
ReferencedContainer = "container:RSpecTest.xcodeproj">
|
21
|
+
</BuildableReference>
|
22
|
+
</BuildActionEntry>
|
23
|
+
</BuildActionEntries>
|
24
|
+
</BuildAction>
|
25
|
+
<TestAction
|
26
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
27
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
28
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
29
|
+
buildConfiguration = "Debug">
|
30
|
+
<Testables>
|
31
|
+
<TestableReference
|
32
|
+
skipped = "NO">
|
33
|
+
<BuildableReference
|
34
|
+
BuildableIdentifier = "primary"
|
35
|
+
BlueprintIdentifier = "611658C918B129BF00616E4C"
|
36
|
+
BuildableName = "RSpecTestTests.xctest"
|
37
|
+
BlueprintName = "RSpecTestTests"
|
38
|
+
ReferencedContainer = "container:RSpecTest.xcodeproj">
|
39
|
+
</BuildableReference>
|
40
|
+
</TestableReference>
|
41
|
+
</Testables>
|
42
|
+
<MacroExpansion>
|
43
|
+
<BuildableReference
|
44
|
+
BuildableIdentifier = "primary"
|
45
|
+
BlueprintIdentifier = "611658A818B129BF00616E4C"
|
46
|
+
BuildableName = "RSpecTest.app"
|
47
|
+
BlueprintName = "RSpecTest"
|
48
|
+
ReferencedContainer = "container:RSpecTest.xcodeproj">
|
49
|
+
</BuildableReference>
|
50
|
+
</MacroExpansion>
|
51
|
+
</TestAction>
|
52
|
+
<LaunchAction
|
53
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
54
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
55
|
+
launchStyle = "0"
|
56
|
+
useCustomWorkingDirectory = "NO"
|
57
|
+
buildConfiguration = "Debug"
|
58
|
+
ignoresPersistentStateOnLaunch = "NO"
|
59
|
+
debugDocumentVersioning = "YES"
|
60
|
+
allowLocationSimulation = "YES">
|
61
|
+
<BuildableProductRunnable>
|
62
|
+
<BuildableReference
|
63
|
+
BuildableIdentifier = "primary"
|
64
|
+
BlueprintIdentifier = "611658A818B129BF00616E4C"
|
65
|
+
BuildableName = "RSpecTest.app"
|
66
|
+
BlueprintName = "RSpecTest"
|
67
|
+
ReferencedContainer = "container:RSpecTest.xcodeproj">
|
68
|
+
</BuildableReference>
|
69
|
+
</BuildableProductRunnable>
|
70
|
+
<AdditionalOptions>
|
71
|
+
</AdditionalOptions>
|
72
|
+
</LaunchAction>
|
73
|
+
<ProfileAction
|
74
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
75
|
+
savedToolIdentifier = ""
|
76
|
+
useCustomWorkingDirectory = "NO"
|
77
|
+
buildConfiguration = "Release"
|
78
|
+
debugDocumentVersioning = "YES">
|
79
|
+
<BuildableProductRunnable>
|
80
|
+
<BuildableReference
|
81
|
+
BuildableIdentifier = "primary"
|
82
|
+
BlueprintIdentifier = "611658A818B129BF00616E4C"
|
83
|
+
BuildableName = "RSpecTest.app"
|
84
|
+
BlueprintName = "RSpecTest"
|
85
|
+
ReferencedContainer = "container:RSpecTest.xcodeproj">
|
86
|
+
</BuildableReference>
|
87
|
+
</BuildableProductRunnable>
|
88
|
+
</ProfileAction>
|
89
|
+
<AnalyzeAction
|
90
|
+
buildConfiguration = "Debug">
|
91
|
+
</AnalyzeAction>
|
92
|
+
<ArchiveAction
|
93
|
+
buildConfiguration = "Release"
|
94
|
+
revealArchiveInOrganizer = "YES">
|
95
|
+
</ArchiveAction>
|
96
|
+
</Scheme>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>SchemeUserState</key>
|
6
|
+
<dict>
|
7
|
+
<key>RSpecTest.xcscheme</key>
|
8
|
+
<dict>
|
9
|
+
<key>orderHint</key>
|
10
|
+
<integer>0</integer>
|
11
|
+
</dict>
|
12
|
+
</dict>
|
13
|
+
<key>SuppressBuildableAutocreation</key>
|
14
|
+
<dict>
|
15
|
+
<key>611658A818B129BF00616E4C</key>
|
16
|
+
<dict>
|
17
|
+
<key>primary</key>
|
18
|
+
<true/>
|
19
|
+
</dict>
|
20
|
+
<key>611658C918B129BF00616E4C</key>
|
21
|
+
<dict>
|
22
|
+
<key>primary</key>
|
23
|
+
<true/>
|
24
|
+
</dict>
|
25
|
+
</dict>
|
26
|
+
</dict>
|
27
|
+
</plist>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// AppDelegate.h
|
3
|
+
// RSpecTest
|
4
|
+
//
|
5
|
+
// Created by Matsumoto Taichi on 2/16/14.
|
6
|
+
// Copyright (c) 2014 taichino.com. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
12
|
+
|
13
|
+
@property (strong, nonatomic) UIWindow *window;
|
14
|
+
|
15
|
+
@end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
//
|
2
|
+
// AppDelegate.m
|
3
|
+
// RSpecTest
|
4
|
+
//
|
5
|
+
// Created by Matsumoto Taichi on 2/16/14.
|
6
|
+
// Copyright (c) 2014 taichino.com. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "AppDelegate.h"
|
10
|
+
|
11
|
+
@implementation AppDelegate
|
12
|
+
|
13
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
14
|
+
{
|
15
|
+
// Override point for customization after application launch.
|
16
|
+
return YES;
|
17
|
+
}
|
18
|
+
|
19
|
+
- (void)applicationWillResignActive:(UIApplication *)application
|
20
|
+
{
|
21
|
+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
22
|
+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
|
23
|
+
}
|
24
|
+
|
25
|
+
- (void)applicationDidEnterBackground:(UIApplication *)application
|
26
|
+
{
|
27
|
+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
28
|
+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
29
|
+
}
|
30
|
+
|
31
|
+
- (void)applicationWillEnterForeground:(UIApplication *)application
|
32
|
+
{
|
33
|
+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
|
34
|
+
}
|
35
|
+
|
36
|
+
- (void)applicationDidBecomeActive:(UIApplication *)application
|
37
|
+
{
|
38
|
+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
39
|
+
}
|
40
|
+
|
41
|
+
- (void)applicationWillTerminate:(UIApplication *)application
|
42
|
+
{
|
43
|
+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
44
|
+
}
|
45
|
+
|
46
|
+
@end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
|
3
|
+
<dependencies>
|
4
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
|
5
|
+
</dependencies>
|
6
|
+
<scenes>
|
7
|
+
<!--class Prefix:identifier View Controller-->
|
8
|
+
<scene sceneID="ufC-wZ-h7g">
|
9
|
+
<objects>
|
10
|
+
<viewController id="vXZ-lx-hvc" customClass="ViewController" sceneMemberID="viewController">
|
11
|
+
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
|
12
|
+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
13
|
+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
14
|
+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
15
|
+
</view>
|
16
|
+
</viewController>
|
17
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
|
18
|
+
</objects>
|
19
|
+
</scene>
|
20
|
+
</scenes>
|
21
|
+
<simulatedMetricsContainer key="defaultSimulatedMetrics">
|
22
|
+
<simulatedStatusBarMetrics key="statusBar"/>
|
23
|
+
<simulatedOrientationMetrics key="orientation"/>
|
24
|
+
<simulatedScreenMetrics key="destination" type="retina4"/>
|
25
|
+
</simulatedMetricsContainer>
|
26
|
+
</document>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"images" : [
|
3
|
+
{
|
4
|
+
"idiom" : "iphone",
|
5
|
+
"size" : "29x29",
|
6
|
+
"scale" : "2x"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"idiom" : "iphone",
|
10
|
+
"size" : "40x40",
|
11
|
+
"scale" : "2x"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"idiom" : "iphone",
|
15
|
+
"size" : "60x60",
|
16
|
+
"scale" : "2x"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"info" : {
|
20
|
+
"version" : 1,
|
21
|
+
"author" : "xcode"
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"images" : [
|
3
|
+
{
|
4
|
+
"orientation" : "portrait",
|
5
|
+
"idiom" : "iphone",
|
6
|
+
"extent" : "full-screen",
|
7
|
+
"minimum-system-version" : "7.0",
|
8
|
+
"scale" : "2x"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"orientation" : "portrait",
|
12
|
+
"idiom" : "iphone",
|
13
|
+
"subtype" : "retina4",
|
14
|
+
"extent" : "full-screen",
|
15
|
+
"minimum-system-version" : "7.0",
|
16
|
+
"scale" : "2x"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"info" : {
|
20
|
+
"version" : 1,
|
21
|
+
"author" : "xcode"
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>en</string>
|
7
|
+
<key>CFBundleDisplayName</key>
|
8
|
+
<string>${PRODUCT_NAME}</string>
|
9
|
+
<key>CFBundleExecutable</key>
|
10
|
+
<string>${EXECUTABLE_NAME}</string>
|
11
|
+
<key>CFBundleIdentifier</key>
|
12
|
+
<string>com.taichino.${PRODUCT_NAME:rfc1034identifier}</string>
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
14
|
+
<string>6.0</string>
|
15
|
+
<key>CFBundleName</key>
|
16
|
+
<string>${PRODUCT_NAME}</string>
|
17
|
+
<key>CFBundlePackageType</key>
|
18
|
+
<string>APPL</string>
|
19
|
+
<key>CFBundleShortVersionString</key>
|
20
|
+
<string>1.0</string>
|
21
|
+
<key>CFBundleSignature</key>
|
22
|
+
<string>????</string>
|
23
|
+
<key>CFBundleVersion</key>
|
24
|
+
<string>1.0</string>
|
25
|
+
<key>LSRequiresIPhoneOS</key>
|
26
|
+
<true/>
|
27
|
+
<key>UIMainStoryboardFile</key>
|
28
|
+
<string>Main</string>
|
29
|
+
<key>UIRequiredDeviceCapabilities</key>
|
30
|
+
<array>
|
31
|
+
<string>armv7</string>
|
32
|
+
</array>
|
33
|
+
<key>UISupportedInterfaceOrientations</key>
|
34
|
+
<array>
|
35
|
+
<string>UIInterfaceOrientationPortrait</string>
|
36
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
37
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
38
|
+
</array>
|
39
|
+
</dict>
|
40
|
+
</plist>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
//
|
2
|
+
// Prefix header
|
3
|
+
//
|
4
|
+
// The contents of this file are implicitly included at the beginning of every source file.
|
5
|
+
//
|
6
|
+
|
7
|
+
#import <Availability.h>
|
8
|
+
|
9
|
+
#ifndef __IPHONE_5_0
|
10
|
+
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
11
|
+
#endif
|
12
|
+
|
13
|
+
#ifdef __OBJC__
|
14
|
+
#import <UIKit/UIKit.h>
|
15
|
+
#import <Foundation/Foundation.h>
|
16
|
+
#endif
|
@@ -0,0 +1,29 @@
|
|
1
|
+
//
|
2
|
+
// ViewController.m
|
3
|
+
// RSpecTest
|
4
|
+
//
|
5
|
+
// Created by Matsumoto Taichi on 2/16/14.
|
6
|
+
// Copyright (c) 2014 taichino.com. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "ViewController.h"
|
10
|
+
|
11
|
+
@interface ViewController ()
|
12
|
+
|
13
|
+
@end
|
14
|
+
|
15
|
+
@implementation ViewController
|
16
|
+
|
17
|
+
- (void)viewDidLoad
|
18
|
+
{
|
19
|
+
[super viewDidLoad];
|
20
|
+
// Do any additional setup after loading the view, typically from a nib.
|
21
|
+
}
|
22
|
+
|
23
|
+
- (void)didReceiveMemoryWarning
|
24
|
+
{
|
25
|
+
[super didReceiveMemoryWarning];
|
26
|
+
// Dispose of any resources that can be recreated.
|
27
|
+
}
|
28
|
+
|
29
|
+
@end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
//
|
2
|
+
// main.m
|
3
|
+
// RSpecTest
|
4
|
+
//
|
5
|
+
// Created by Matsumoto Taichi on 2/16/14.
|
6
|
+
// Copyright (c) 2014 taichino.com. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
#import "AppDelegate.h"
|
12
|
+
|
13
|
+
int main(int argc, char * argv[])
|
14
|
+
{
|
15
|
+
@autoreleasepool {
|
16
|
+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>en</string>
|
7
|
+
<key>CFBundleExecutable</key>
|
8
|
+
<string>${EXECUTABLE_NAME}</string>
|
9
|
+
<key>CFBundleIdentifier</key>
|
10
|
+
<string>com.taichino.${PRODUCT_NAME:rfc1034identifier}</string>
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
+
<string>6.0</string>
|
13
|
+
<key>CFBundlePackageType</key>
|
14
|
+
<string>BNDL</string>
|
15
|
+
<key>CFBundleShortVersionString</key>
|
16
|
+
<string>1.0</string>
|
17
|
+
<key>CFBundleSignature</key>
|
18
|
+
<string>????</string>
|
19
|
+
<key>CFBundleVersion</key>
|
20
|
+
<string>1</string>
|
21
|
+
</dict>
|
22
|
+
</plist>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
//
|
2
|
+
// RSpecTestTests.m
|
3
|
+
// RSpecTestTests
|
4
|
+
//
|
5
|
+
// Created by Matsumoto Taichi on 2/16/14.
|
6
|
+
// Copyright (c) 2014 taichino.com. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <XCTest/XCTest.h>
|
10
|
+
|
11
|
+
@interface RSpecTestTests : XCTestCase
|
12
|
+
|
13
|
+
@end
|
14
|
+
|
15
|
+
@implementation RSpecTestTests
|
16
|
+
|
17
|
+
- (void)setUp
|
18
|
+
{
|
19
|
+
[super setUp];
|
20
|
+
// Put setup code here. This method is called before the invocation of each test method in the class.
|
21
|
+
}
|
22
|
+
|
23
|
+
- (void)tearDown
|
24
|
+
{
|
25
|
+
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
26
|
+
[super tearDown];
|
27
|
+
}
|
28
|
+
|
29
|
+
- (void)testExample
|
30
|
+
{
|
31
|
+
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
|
32
|
+
}
|
33
|
+
|
34
|
+
@end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
if ENV['CI']
|
2
|
+
require 'coveralls'
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
5
|
+
SimpleCov.start
|
6
|
+
end
|
7
|
+
|
8
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
9
|
+
require 'xcodeproj_utils'
|
10
|
+
|
11
|
+
def fixture_path(path)
|
12
|
+
File.join(File.dirname(__FILE__), "fixtures", path)
|
13
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe XcodeprojUtils do
|
4
|
+
it 'should have a version number' do
|
5
|
+
XcodeprojUtils::VERSION.should_not be_nil
|
6
|
+
end
|
7
|
+
|
8
|
+
describe XcodeprojUtils::Project do
|
9
|
+
it "raise RuntimeError for a non-existing project" do
|
10
|
+
expect { XcodeprojUtils::Project.new('Non-existing.xcodeproj', 'Target1') }.to raise_error(RuntimeError)
|
11
|
+
end
|
12
|
+
|
13
|
+
it "raise ArgumentError for a non-existing target" do
|
14
|
+
expect { XcodeprojUtils::Project.new(fixture_path('RSpecTest/RSpecTest.xcodeproj'),
|
15
|
+
'Non-Existing Target') }.to raise_error(ArgumentError)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcodeproj_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matsumoto Taichi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -79,6 +79,8 @@ executables:
|
|
79
79
|
extensions: []
|
80
80
|
extra_rdoc_files: []
|
81
81
|
files:
|
82
|
+
- .rspec
|
83
|
+
- .travis.yml
|
82
84
|
- Gemfile
|
83
85
|
- LICENSE.txt
|
84
86
|
- README.md
|
@@ -86,6 +88,27 @@ files:
|
|
86
88
|
- bin/xcp_utils
|
87
89
|
- lib/xcodeproj_utils.rb
|
88
90
|
- lib/xcodeproj_utils/version.rb
|
91
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.pbxproj
|
92
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
93
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.xcworkspace/xcuserdata/taichino.xcuserdatad/UserInterfaceState.xcuserstate
|
94
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/xcuserdata/taichino.xcuserdatad/xcschemes/RSpecTest.xcscheme
|
95
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/xcuserdata/taichino.xcuserdatad/xcschemes/xcschememanagement.plist
|
96
|
+
- spec/fixtures/RSpecTest/RSpecTest/AppDelegate.h
|
97
|
+
- spec/fixtures/RSpecTest/RSpecTest/AppDelegate.m
|
98
|
+
- spec/fixtures/RSpecTest/RSpecTest/Base.lproj/Main.storyboard
|
99
|
+
- spec/fixtures/RSpecTest/RSpecTest/Images.xcassets/AppIcon.appiconset/Contents.json
|
100
|
+
- spec/fixtures/RSpecTest/RSpecTest/Images.xcassets/LaunchImage.launchimage/Contents.json
|
101
|
+
- spec/fixtures/RSpecTest/RSpecTest/RSpecTest-Info.plist
|
102
|
+
- spec/fixtures/RSpecTest/RSpecTest/RSpecTest-Prefix.pch
|
103
|
+
- spec/fixtures/RSpecTest/RSpecTest/ViewController.h
|
104
|
+
- spec/fixtures/RSpecTest/RSpecTest/ViewController.m
|
105
|
+
- spec/fixtures/RSpecTest/RSpecTest/en.lproj/InfoPlist.strings
|
106
|
+
- spec/fixtures/RSpecTest/RSpecTest/main.m
|
107
|
+
- spec/fixtures/RSpecTest/RSpecTestTests/RSpecTestTests-Info.plist
|
108
|
+
- spec/fixtures/RSpecTest/RSpecTestTests/RSpecTestTests.m
|
109
|
+
- spec/fixtures/RSpecTest/RSpecTestTests/en.lproj/InfoPlist.strings
|
110
|
+
- spec/spec_helper.rb
|
111
|
+
- spec/xcodeproj_utils_spec.rb
|
89
112
|
- xcodeproj_utils.gemspec
|
90
113
|
homepage: https://github.com/taichino/xcodeproj_utils
|
91
114
|
licenses:
|
@@ -111,4 +134,25 @@ rubygems_version: 2.0.6
|
|
111
134
|
signing_key:
|
112
135
|
specification_version: 4
|
113
136
|
summary: Util commands for xcode project.
|
114
|
-
test_files:
|
137
|
+
test_files:
|
138
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.pbxproj
|
139
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
140
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/project.xcworkspace/xcuserdata/taichino.xcuserdatad/UserInterfaceState.xcuserstate
|
141
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/xcuserdata/taichino.xcuserdatad/xcschemes/RSpecTest.xcscheme
|
142
|
+
- spec/fixtures/RSpecTest/RSpecTest.xcodeproj/xcuserdata/taichino.xcuserdatad/xcschemes/xcschememanagement.plist
|
143
|
+
- spec/fixtures/RSpecTest/RSpecTest/AppDelegate.h
|
144
|
+
- spec/fixtures/RSpecTest/RSpecTest/AppDelegate.m
|
145
|
+
- spec/fixtures/RSpecTest/RSpecTest/Base.lproj/Main.storyboard
|
146
|
+
- spec/fixtures/RSpecTest/RSpecTest/Images.xcassets/AppIcon.appiconset/Contents.json
|
147
|
+
- spec/fixtures/RSpecTest/RSpecTest/Images.xcassets/LaunchImage.launchimage/Contents.json
|
148
|
+
- spec/fixtures/RSpecTest/RSpecTest/RSpecTest-Info.plist
|
149
|
+
- spec/fixtures/RSpecTest/RSpecTest/RSpecTest-Prefix.pch
|
150
|
+
- spec/fixtures/RSpecTest/RSpecTest/ViewController.h
|
151
|
+
- spec/fixtures/RSpecTest/RSpecTest/ViewController.m
|
152
|
+
- spec/fixtures/RSpecTest/RSpecTest/en.lproj/InfoPlist.strings
|
153
|
+
- spec/fixtures/RSpecTest/RSpecTest/main.m
|
154
|
+
- spec/fixtures/RSpecTest/RSpecTestTests/RSpecTestTests-Info.plist
|
155
|
+
- spec/fixtures/RSpecTest/RSpecTestTests/RSpecTestTests.m
|
156
|
+
- spec/fixtures/RSpecTest/RSpecTestTests/en.lproj/InfoPlist.strings
|
157
|
+
- spec/spec_helper.rb
|
158
|
+
- spec/xcodeproj_utils_spec.rb
|