cocoapods-pack 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rubocop.yml +43 -0
  4. data/Gemfile +8 -0
  5. data/Gemfile.lock +149 -0
  6. data/LICENSE +202 -0
  7. data/README.md +116 -0
  8. data/Rakefile +8 -0
  9. data/cocoapods-pack.gemspec +34 -0
  10. data/endToEndPackMySample.sh +13 -0
  11. data/lib/cocoapods-pack/command/pack.rb +497 -0
  12. data/lib/cocoapods-pack/command.rb +19 -0
  13. data/lib/cocoapods-pack/env_parser.rb +23 -0
  14. data/lib/cocoapods-pack/find_follow.rb +106 -0
  15. data/lib/cocoapods-pack/gem_version.rb +21 -0
  16. data/lib/cocoapods-pack/spec_generator.rb +154 -0
  17. data/lib/cocoapods-pack/xcode_builder.rb +193 -0
  18. data/lib/cocoapods-pack/zip_file_generator.rb +56 -0
  19. data/lib/cocoapods_pack.rb +19 -0
  20. data/lib/cocoapods_plugin.rb +19 -0
  21. data/local_pod.rb +7 -0
  22. data/packMySample.sh +8 -0
  23. data/samples/CLIConsumer/CLIConsumer/dummy.swift +1 -0
  24. data/samples/CLIConsumer/CLIConsumer/main.m +10 -0
  25. data/samples/CLIConsumer/CLIConsumer.xcodeproj/project.pbxproj +329 -0
  26. data/samples/CLIConsumer/CLIConsumer.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  27. data/samples/CLIConsumer/CLIConsumer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  28. data/samples/CLIConsumer/CLIConsumer.xcodeproj/xcshareddata/xcschemes/CLIConsumer.xcscheme +88 -0
  29. data/samples/CLIConsumer/CLIConsumer.xcworkspace/contents.xcworkspacedata +10 -0
  30. data/samples/CLIConsumer/CLIConsumer.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  31. data/samples/CLIConsumer/Podfile +9 -0
  32. data/samples/CLIConsumer/build.sh +13 -0
  33. data/samples/MySample/MIT +1 -0
  34. data/samples/MySample/MySample/Internal/MySample_Internal.h +1 -0
  35. data/samples/MySample/MySample/MyObjCInSwiftSample.swift +7 -0
  36. data/samples/MySample/MySample/MySample.h +7 -0
  37. data/samples/MySample/MySample/MySample.m +10 -0
  38. data/samples/MySample/MySample/MySwiftSample.swift +7 -0
  39. data/samples/MySample/MySample.podspec +45 -0
  40. data/samples/MySample/MySample.xcodeproj/project.pbxproj +379 -0
  41. data/samples/MySample/MySample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  42. data/samples/MySample/MySampleTests/Info.plist +24 -0
  43. data/samples/MySample/python/a.py +1 -0
  44. data/samples/MySample/python/subpython/b.py +1 -0
  45. data/samples/MySample/resources/a.png +1 -0
  46. data/samples/MySample/resources/lets/go/nuts/b.png +1 -0
  47. data/samples/MySample/resources/lets/go/runit.png +0 -0
  48. data/spec/acceptance_spec.rb +22 -0
  49. data/spec/env_parser_spec.rb +18 -0
  50. data/spec/spec_generator_spec.rb +247 -0
  51. data/spec/spec_helper.rb +47 -0
  52. data/spec/xcode_builder_spec.rb +113 -0
  53. metadata +207 -0
@@ -0,0 +1,379 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 293E92431B91185B006EDD86 /* MySample.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 293E92421B91185B006EDD86 /* MySample.h */; };
11
+ 293E92451B91185B006EDD86 /* MySample.m in Sources */ = {isa = PBXBuildFile; fileRef = 293E92441B91185B006EDD86 /* MySample.m */; };
12
+ 293E924B1B91185C006EDD86 /* libMySample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 293E923F1B91185B006EDD86 /* libMySample.a */; };
13
+ /* End PBXBuildFile section */
14
+
15
+ /* Begin PBXContainerItemProxy section */
16
+ 293E924C1B91185C006EDD86 /* PBXContainerItemProxy */ = {
17
+ isa = PBXContainerItemProxy;
18
+ containerPortal = 293E92371B91185B006EDD86 /* Project object */;
19
+ proxyType = 1;
20
+ remoteGlobalIDString = 293E923E1B91185B006EDD86;
21
+ remoteInfo = MySample;
22
+ };
23
+ /* End PBXContainerItemProxy section */
24
+
25
+ /* Begin PBXCopyFilesBuildPhase section */
26
+ 293E923D1B91185B006EDD86 /* CopyFiles */ = {
27
+ isa = PBXCopyFilesBuildPhase;
28
+ buildActionMask = 2147483647;
29
+ dstPath = "include/$(PRODUCT_NAME)";
30
+ dstSubfolderSpec = 16;
31
+ files = (
32
+ 293E92431B91185B006EDD86 /* MySample.h in CopyFiles */,
33
+ );
34
+ runOnlyForDeploymentPostprocessing = 0;
35
+ };
36
+ /* End PBXCopyFilesBuildPhase section */
37
+
38
+ /* Begin PBXFileReference section */
39
+ 293E923F1B91185B006EDD86 /* libMySample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMySample.a; sourceTree = BUILT_PRODUCTS_DIR; };
40
+ 293E92421B91185B006EDD86 /* MySample.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MySample.h; sourceTree = "<group>"; };
41
+ 293E92441B91185B006EDD86 /* MySample.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MySample.m; sourceTree = "<group>"; };
42
+ 293E924A1B91185C006EDD86 /* MySampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MySampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
43
+ 293E92501B91185C006EDD86 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
44
+ /* End PBXFileReference section */
45
+
46
+ /* Begin PBXFrameworksBuildPhase section */
47
+ 293E923C1B91185B006EDD86 /* Frameworks */ = {
48
+ isa = PBXFrameworksBuildPhase;
49
+ buildActionMask = 2147483647;
50
+ files = (
51
+ );
52
+ runOnlyForDeploymentPostprocessing = 0;
53
+ };
54
+ 293E92471B91185C006EDD86 /* Frameworks */ = {
55
+ isa = PBXFrameworksBuildPhase;
56
+ buildActionMask = 2147483647;
57
+ files = (
58
+ 293E924B1B91185C006EDD86 /* libMySample.a in Frameworks */,
59
+ );
60
+ runOnlyForDeploymentPostprocessing = 0;
61
+ };
62
+ /* End PBXFrameworksBuildPhase section */
63
+
64
+ /* Begin PBXGroup section */
65
+ 293E92361B91185B006EDD86 = {
66
+ isa = PBXGroup;
67
+ children = (
68
+ 293E92411B91185B006EDD86 /* MySample */,
69
+ 293E924E1B91185C006EDD86 /* MySampleTests */,
70
+ 293E92401B91185B006EDD86 /* Products */,
71
+ );
72
+ sourceTree = "<group>";
73
+ };
74
+ 293E92401B91185B006EDD86 /* Products */ = {
75
+ isa = PBXGroup;
76
+ children = (
77
+ 293E923F1B91185B006EDD86 /* libMySample.a */,
78
+ 293E924A1B91185C006EDD86 /* MySampleTests.xctest */,
79
+ );
80
+ name = Products;
81
+ sourceTree = "<group>";
82
+ };
83
+ 293E92411B91185B006EDD86 /* MySample */ = {
84
+ isa = PBXGroup;
85
+ children = (
86
+ 293E92421B91185B006EDD86 /* MySample.h */,
87
+ 293E92441B91185B006EDD86 /* MySample.m */,
88
+ );
89
+ path = MySample;
90
+ sourceTree = "<group>";
91
+ };
92
+ 293E924E1B91185C006EDD86 /* MySampleTests */ = {
93
+ isa = PBXGroup;
94
+ children = (
95
+ 293E924F1B91185C006EDD86 /* Supporting Files */,
96
+ );
97
+ path = MySampleTests;
98
+ sourceTree = "<group>";
99
+ };
100
+ 293E924F1B91185C006EDD86 /* Supporting Files */ = {
101
+ isa = PBXGroup;
102
+ children = (
103
+ 293E92501B91185C006EDD86 /* Info.plist */,
104
+ );
105
+ name = "Supporting Files";
106
+ sourceTree = "<group>";
107
+ };
108
+ /* End PBXGroup section */
109
+
110
+ /* Begin PBXNativeTarget section */
111
+ 293E923E1B91185B006EDD86 /* MySample */ = {
112
+ isa = PBXNativeTarget;
113
+ buildConfigurationList = 293E92531B91185C006EDD86 /* Build configuration list for PBXNativeTarget "MySample" */;
114
+ buildPhases = (
115
+ 293E923B1B91185B006EDD86 /* Sources */,
116
+ 293E923C1B91185B006EDD86 /* Frameworks */,
117
+ 293E923D1B91185B006EDD86 /* CopyFiles */,
118
+ );
119
+ buildRules = (
120
+ );
121
+ dependencies = (
122
+ );
123
+ name = MySample;
124
+ productName = MySample;
125
+ productReference = 293E923F1B91185B006EDD86 /* libMySample.a */;
126
+ productType = "com.apple.product-type.library.static";
127
+ };
128
+ 293E92491B91185C006EDD86 /* MySampleTests */ = {
129
+ isa = PBXNativeTarget;
130
+ buildConfigurationList = 293E92561B91185C006EDD86 /* Build configuration list for PBXNativeTarget "MySampleTests" */;
131
+ buildPhases = (
132
+ 293E92461B91185C006EDD86 /* Sources */,
133
+ 293E92471B91185C006EDD86 /* Frameworks */,
134
+ 293E92481B91185C006EDD86 /* Resources */,
135
+ );
136
+ buildRules = (
137
+ );
138
+ dependencies = (
139
+ 293E924D1B91185C006EDD86 /* PBXTargetDependency */,
140
+ );
141
+ name = MySampleTests;
142
+ productName = MySampleTests;
143
+ productReference = 293E924A1B91185C006EDD86 /* MySampleTests.xctest */;
144
+ productType = "com.apple.product-type.bundle.unit-test";
145
+ };
146
+ /* End PBXNativeTarget section */
147
+
148
+ /* Begin PBXProject section */
149
+ 293E92371B91185B006EDD86 /* Project object */ = {
150
+ isa = PBXProject;
151
+ attributes = {
152
+ LastUpgradeCheck = 0640;
153
+ ORGANIZATIONNAME = Example;
154
+ TargetAttributes = {
155
+ 293E923E1B91185B006EDD86 = {
156
+ CreatedOnToolsVersion = 6.4;
157
+ };
158
+ 293E92491B91185C006EDD86 = {
159
+ CreatedOnToolsVersion = 6.4;
160
+ };
161
+ };
162
+ };
163
+ buildConfigurationList = 293E923A1B91185B006EDD86 /* Build configuration list for PBXProject "MySample" */;
164
+ compatibilityVersion = "Xcode 3.2";
165
+ developmentRegion = English;
166
+ hasScannedForEncodings = 0;
167
+ knownRegions = (
168
+ en,
169
+ );
170
+ mainGroup = 293E92361B91185B006EDD86;
171
+ productRefGroup = 293E92401B91185B006EDD86 /* Products */;
172
+ projectDirPath = "";
173
+ projectRoot = "";
174
+ targets = (
175
+ 293E923E1B91185B006EDD86 /* MySample */,
176
+ 293E92491B91185C006EDD86 /* MySampleTests */,
177
+ );
178
+ };
179
+ /* End PBXProject section */
180
+
181
+ /* Begin PBXResourcesBuildPhase section */
182
+ 293E92481B91185C006EDD86 /* Resources */ = {
183
+ isa = PBXResourcesBuildPhase;
184
+ buildActionMask = 2147483647;
185
+ files = (
186
+ );
187
+ runOnlyForDeploymentPostprocessing = 0;
188
+ };
189
+ /* End PBXResourcesBuildPhase section */
190
+
191
+ /* Begin PBXSourcesBuildPhase section */
192
+ 293E923B1B91185B006EDD86 /* Sources */ = {
193
+ isa = PBXSourcesBuildPhase;
194
+ buildActionMask = 2147483647;
195
+ files = (
196
+ 293E92451B91185B006EDD86 /* MySample.m in Sources */,
197
+ );
198
+ runOnlyForDeploymentPostprocessing = 0;
199
+ };
200
+ 293E92461B91185C006EDD86 /* Sources */ = {
201
+ isa = PBXSourcesBuildPhase;
202
+ buildActionMask = 2147483647;
203
+ files = (
204
+ );
205
+ runOnlyForDeploymentPostprocessing = 0;
206
+ };
207
+ /* End PBXSourcesBuildPhase section */
208
+
209
+ /* Begin PBXTargetDependency section */
210
+ 293E924D1B91185C006EDD86 /* PBXTargetDependency */ = {
211
+ isa = PBXTargetDependency;
212
+ target = 293E923E1B91185B006EDD86 /* MySample */;
213
+ targetProxy = 293E924C1B91185C006EDD86 /* PBXContainerItemProxy */;
214
+ };
215
+ /* End PBXTargetDependency section */
216
+
217
+ /* Begin XCBuildConfiguration section */
218
+ 293E92511B91185C006EDD86 /* Debug */ = {
219
+ isa = XCBuildConfiguration;
220
+ buildSettings = {
221
+ ALWAYS_SEARCH_USER_PATHS = NO;
222
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
223
+ CLANG_CXX_LIBRARY = "libc++";
224
+ CLANG_ENABLE_MODULES = YES;
225
+ CLANG_ENABLE_OBJC_ARC = YES;
226
+ CLANG_WARN_BOOL_CONVERSION = YES;
227
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
228
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
229
+ CLANG_WARN_EMPTY_BODY = YES;
230
+ CLANG_WARN_ENUM_CONVERSION = YES;
231
+ CLANG_WARN_INT_CONVERSION = YES;
232
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
233
+ CLANG_WARN_UNREACHABLE_CODE = YES;
234
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
235
+ COPY_PHASE_STRIP = NO;
236
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
237
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
238
+ GCC_C_LANGUAGE_STANDARD = gnu99;
239
+ GCC_DYNAMIC_NO_PIC = NO;
240
+ GCC_NO_COMMON_BLOCKS = YES;
241
+ GCC_OPTIMIZATION_LEVEL = 0;
242
+ GCC_PREPROCESSOR_DEFINITIONS = (
243
+ "DEBUG=1",
244
+ "$(inherited)",
245
+ );
246
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
247
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
248
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
249
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
250
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
251
+ GCC_WARN_UNUSED_FUNCTION = YES;
252
+ GCC_WARN_UNUSED_VARIABLE = YES;
253
+ IPHONEOS_DEPLOYMENT_TARGET = 8.4;
254
+ MTL_ENABLE_DEBUG_INFO = YES;
255
+ ONLY_ACTIVE_ARCH = YES;
256
+ SDKROOT = iphoneos;
257
+ };
258
+ name = Debug;
259
+ };
260
+ 293E92521B91185C006EDD86 /* Release */ = {
261
+ isa = XCBuildConfiguration;
262
+ buildSettings = {
263
+ ALWAYS_SEARCH_USER_PATHS = NO;
264
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
265
+ CLANG_CXX_LIBRARY = "libc++";
266
+ CLANG_ENABLE_MODULES = YES;
267
+ CLANG_ENABLE_OBJC_ARC = YES;
268
+ CLANG_WARN_BOOL_CONVERSION = YES;
269
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
270
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
271
+ CLANG_WARN_EMPTY_BODY = YES;
272
+ CLANG_WARN_ENUM_CONVERSION = YES;
273
+ CLANG_WARN_INT_CONVERSION = YES;
274
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
275
+ CLANG_WARN_UNREACHABLE_CODE = YES;
276
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
277
+ COPY_PHASE_STRIP = NO;
278
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
279
+ ENABLE_NS_ASSERTIONS = NO;
280
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
281
+ GCC_C_LANGUAGE_STANDARD = gnu99;
282
+ GCC_NO_COMMON_BLOCKS = YES;
283
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
284
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
285
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
286
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
287
+ GCC_WARN_UNUSED_FUNCTION = YES;
288
+ GCC_WARN_UNUSED_VARIABLE = YES;
289
+ IPHONEOS_DEPLOYMENT_TARGET = 8.4;
290
+ MTL_ENABLE_DEBUG_INFO = NO;
291
+ SDKROOT = iphoneos;
292
+ VALIDATE_PRODUCT = YES;
293
+ };
294
+ name = Release;
295
+ };
296
+ 293E92541B91185C006EDD86 /* Debug */ = {
297
+ isa = XCBuildConfiguration;
298
+ buildSettings = {
299
+ OTHER_LDFLAGS = "-ObjC";
300
+ PRODUCT_NAME = "$(TARGET_NAME)";
301
+ SKIP_INSTALL = YES;
302
+ };
303
+ name = Debug;
304
+ };
305
+ 293E92551B91185C006EDD86 /* Release */ = {
306
+ isa = XCBuildConfiguration;
307
+ buildSettings = {
308
+ OTHER_LDFLAGS = "-ObjC";
309
+ PRODUCT_NAME = "$(TARGET_NAME)";
310
+ SKIP_INSTALL = YES;
311
+ };
312
+ name = Release;
313
+ };
314
+ 293E92571B91185C006EDD86 /* Debug */ = {
315
+ isa = XCBuildConfiguration;
316
+ buildSettings = {
317
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
318
+ FRAMEWORK_SEARCH_PATHS = (
319
+ "$(SDKROOT)/Developer/Library/Frameworks",
320
+ "$(inherited)",
321
+ );
322
+ GCC_PREPROCESSOR_DEFINITIONS = (
323
+ "DEBUG=1",
324
+ "$(inherited)",
325
+ );
326
+ INFOPLIST_FILE = MySampleTests/Info.plist;
327
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
328
+ PRODUCT_NAME = "$(TARGET_NAME)";
329
+ };
330
+ name = Debug;
331
+ };
332
+ 293E92581B91185C006EDD86 /* Release */ = {
333
+ isa = XCBuildConfiguration;
334
+ buildSettings = {
335
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
336
+ FRAMEWORK_SEARCH_PATHS = (
337
+ "$(SDKROOT)/Developer/Library/Frameworks",
338
+ "$(inherited)",
339
+ );
340
+ INFOPLIST_FILE = MySampleTests/Info.plist;
341
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
342
+ PRODUCT_NAME = "$(TARGET_NAME)";
343
+ };
344
+ name = Release;
345
+ };
346
+ /* End XCBuildConfiguration section */
347
+
348
+ /* Begin XCConfigurationList section */
349
+ 293E923A1B91185B006EDD86 /* Build configuration list for PBXProject "MySample" */ = {
350
+ isa = XCConfigurationList;
351
+ buildConfigurations = (
352
+ 293E92511B91185C006EDD86 /* Debug */,
353
+ 293E92521B91185C006EDD86 /* Release */,
354
+ );
355
+ defaultConfigurationIsVisible = 0;
356
+ defaultConfigurationName = Release;
357
+ };
358
+ 293E92531B91185C006EDD86 /* Build configuration list for PBXNativeTarget "MySample" */ = {
359
+ isa = XCConfigurationList;
360
+ buildConfigurations = (
361
+ 293E92541B91185C006EDD86 /* Debug */,
362
+ 293E92551B91185C006EDD86 /* Release */,
363
+ );
364
+ defaultConfigurationIsVisible = 0;
365
+ defaultConfigurationName = Release;
366
+ };
367
+ 293E92561B91185C006EDD86 /* Build configuration list for PBXNativeTarget "MySampleTests" */ = {
368
+ isa = XCConfigurationList;
369
+ buildConfigurations = (
370
+ 293E92571B91185C006EDD86 /* Debug */,
371
+ 293E92581B91185C006EDD86 /* Release */,
372
+ );
373
+ defaultConfigurationIsVisible = 0;
374
+ defaultConfigurationName = Release;
375
+ };
376
+ /* End XCConfigurationList section */
377
+ };
378
+ rootObject = 293E92371B91185B006EDD86 /* Project object */;
379
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:MySample.xcodeproj">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1,24 @@
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.example.$(PRODUCT_NAME:rfc1034identifier)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>BNDL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>1</string>
23
+ </dict>
24
+ </plist>
@@ -0,0 +1 @@
1
+ a
@@ -0,0 +1 @@
1
+ b
@@ -0,0 +1 @@
1
+ a
File without changes
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rspec'
4
+ require 'open3'
5
+
6
+ describe 'End to end Mac app testing' do
7
+ subject do
8
+ script = './endToEndBinMySample.sh'
9
+ script_dir = File.join(File.dirname(__FILE__), '../')
10
+ Dir.chdir script_dir do
11
+ Open3.capture2e([script, script])
12
+ end
13
+ end
14
+
15
+ let(:output) { subject.first }
16
+ let(:status) { subject.last }
17
+
18
+ xit 'compiles a mac app using cocoapods' do
19
+ expect(output).to end_with("\nCalling MySample: MySample\n")
20
+ expect(status).to be_success
21
+ end
22
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rspec'
4
+ require_relative '../lib/cocoapods-pack/env_parser'
5
+
6
+ describe EnvParser do
7
+ include EnvParser
8
+
9
+ it 'can parse env variables into a hash' do
10
+ build_settings = <<-BUILDSETTINGS
11
+ LD_NO_PIE = NO
12
+ LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES
13
+ LINK_FILE_LIST_normal_i386 =
14
+ BUILDSETTINGS
15
+ hash = { 'LD_NO_PIE' => 'NO', 'LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER' => 'YES' }
16
+ expect(parse_env(build_settings)).to eq hash
17
+ end
18
+ end