pod-builder 2.0.0.beta.21 → 2.0.0.beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -22
- data/exe/pod_builder +10 -32
- data/lib/pod_builder/command.rb +1 -3
- data/lib/pod_builder/command/build.rb +0 -1
- data/lib/pod_builder/command/generate_lldbinit.rb +151 -0
- data/lib/pod_builder/command/init.rb +26 -12
- data/lib/pod_builder/configuration.rb +2 -20
- data/lib/pod_builder/core.rb +17 -7
- data/lib/pod_builder/install.rb +135 -71
- data/lib/pod_builder/podfile.rb +23 -5
- data/lib/pod_builder/podfile_cp.rb +1 -1
- data/lib/pod_builder/podfile_item.rb +1 -1
- data/lib/pod_builder/rome/post_install.rb +185 -12
- data/lib/pod_builder/templates/build_podfile.template +1 -1
- data/lib/pod_builder/version.rb +1 -1
- data/pod-builder.gemspec +2 -2
- metadata +4 -28
- data/Example/PodBuilder/.gitignore +0 -6
- data/Example/PodBuilder/.pod_builder/pod_builder +0 -0
- data/Example/PodBuilder/PodBuilder.json +0 -38
- data/Example/PodBuilder/Podfile +0 -23
- data/Example/PodBuilder/Podfile.restore +0 -40
- data/Example/PodBuilderExample.xcodeproj/project.pbxproj +0 -411
- data/Example/PodBuilderExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- data/Example/PodBuilderExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- data/Example/PodBuilderExample.xcodeproj/project.xcworkspace/xcuserdata/tomas.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- data/Example/PodBuilderExample.xcworkspace/contents.xcworkspacedata +0 -10
- data/Example/PodBuilderExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- data/Example/PodBuilderExample/AppDelegate.swift +0 -51
- data/Example/PodBuilderExample/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
- data/Example/PodBuilderExample/Assets.xcassets/Contents.json +0 -6
- data/Example/PodBuilderExample/Base.lproj/LaunchScreen.storyboard +0 -25
- data/Example/PodBuilderExample/Base.lproj/Main.storyboard +0 -24
- data/Example/PodBuilderExample/Info.plist +0 -45
- data/Example/PodBuilderExample/ViewController.swift +0 -25
- data/Example/Podfile +0 -49
- data/Example/Podfile.lock +0 -435
- data/Example/Pods-acknowledgements.md +0 -210
- data/Example/Pods-acknowledgements.plist +0 -206
- data/lib/pod_builder/command/clear_lldbinit.rb +0 -48
- data/lib/pod_builder/command/generate_lfs.rb +0 -70
- data/lib/pod_builder/command/update_lldbinit.rb +0 -162
data/lib/pod_builder/podfile.rb
CHANGED
@@ -17,8 +17,10 @@ module PodBuilder
|
|
17
17
|
|
18
18
|
platform = analyzer.instance_variable_get("@result").targets.first.platform
|
19
19
|
|
20
|
-
install_using_frameworks = analyzer
|
20
|
+
install_using_frameworks = install_using_frameworks(analyzer)
|
21
|
+
|
21
22
|
podfile.sub!("%%%use_frameworks%%%", install_using_frameworks ? "use_frameworks!" : "")
|
23
|
+
podfile.sub!("%%%uses_frameworks%%%", install_using_frameworks ? "true" : "false")
|
22
24
|
|
23
25
|
podfile.sub!("%%%platform_name%%%", platform.name.to_s)
|
24
26
|
podfile.sub!("%%%deployment_version%%%", platform.deployment_target.version)
|
@@ -45,7 +47,7 @@ module PodBuilder
|
|
45
47
|
|
46
48
|
# Don't store .pcm info in binary, see https://forums.swift.org/t/swift-behavior-of-gmodules-and-dsyms/23211/3
|
47
49
|
build_settings['CLANG_ENABLE_MODULE_DEBUGGING'] = 'NO'
|
48
|
-
build_settings['OTHER_SWIFT_FLAGS'] = "-Xfrontend -no-clang-module-breadcrumbs"
|
50
|
+
build_settings['OTHER_SWIFT_FLAGS'] = "$(inherited) -Xfrontend -no-clang-module-breadcrumbs"
|
49
51
|
|
50
52
|
# Improve compile speed
|
51
53
|
build_settings['COMPILER_INDEX_STORE_ENABLE'] = 'NO'
|
@@ -180,7 +182,7 @@ module PodBuilder
|
|
180
182
|
next
|
181
183
|
end
|
182
184
|
|
183
|
-
if pod_name = pod_definition_in(line, true)
|
185
|
+
if pod_name = pod_definition_in(line, true)
|
184
186
|
if podfile_item = all_buildable_items.detect { |x| x.name == pod_name }
|
185
187
|
marker = podfile_item.prebuilt_marker()
|
186
188
|
|
@@ -198,7 +200,7 @@ module PodBuilder
|
|
198
200
|
dep_item = all_buildable_items.detect { |x| x.name == dep.name }
|
199
201
|
|
200
202
|
if File.exist?(dep_item.prebuilt_podspec_path) && !dep_item.is_prebuilt
|
201
|
-
pod_name = dep_item.prebuilt_entry(false)
|
203
|
+
pod_name = dep_item.prebuilt_entry(false, false)
|
202
204
|
prebuilt_lines.push("#{line.detect_indentation}#{pod_name}#{marker}\n")
|
203
205
|
end
|
204
206
|
|
@@ -591,7 +593,7 @@ module PodBuilder
|
|
591
593
|
base = File.expand_path(File.join(PodBuilder::project_path, ".."))
|
592
594
|
bin_js = Dir.glob("#{base}/node_modules/@react-native-community/cli/build/bin.js")
|
593
595
|
|
594
|
-
raise "\n\nReact native cli bin_js not found!".red unless bin_js.count == 1
|
596
|
+
raise "\n\nReact native cli bin_js not found! Did you run yarn install?".red unless bin_js.count == 1
|
595
597
|
bin_js = bin_js.first
|
596
598
|
|
597
599
|
config_dest_path = PodBuilder::basepath("rn_config.json")
|
@@ -676,5 +678,21 @@ module PodBuilder
|
|
676
678
|
|
677
679
|
return podfile_content
|
678
680
|
end
|
681
|
+
|
682
|
+
def self.install_using_frameworks(analyzer)
|
683
|
+
target_settings = analyzer.podfile.target_definition_list.map(&:uses_frameworks?).uniq
|
684
|
+
if target_settings.count == 1
|
685
|
+
if target_settings.first == false && ENV['DEBUGGING'].nil?
|
686
|
+
raise "\n\nOnly framework packaging currently supported. Please add 'use_frameworks!' at Podfile root level (not nested in targets)".red
|
687
|
+
end
|
688
|
+
return target_settings.first
|
689
|
+
elsif target_settings.count > 1
|
690
|
+
raise "\n\n'use_frameworks!' should be declared only once at Podfile root level (not nested in targets)".red
|
691
|
+
else
|
692
|
+
raise "\n\nFailed detecting use_frameworks!"
|
693
|
+
end
|
694
|
+
|
695
|
+
return true
|
696
|
+
end
|
679
697
|
end
|
680
698
|
end
|
@@ -49,7 +49,7 @@ module Pod
|
|
49
49
|
pod_entries = pod_entries.uniq.sort_by { |t| t.name }
|
50
50
|
|
51
51
|
prebuild_entries.each do |pod|
|
52
|
-
target_s += "#{child_indentation}#{pod.prebuilt_entry(false)}\n"
|
52
|
+
target_s += "#{child_indentation}#{pod.prebuilt_entry(false, false)}\n"
|
53
53
|
end
|
54
54
|
pod_entries.each do |pod|
|
55
55
|
target_s += "#{child_indentation}#{pod.entry(true, false)}\n"
|
@@ -401,7 +401,7 @@ module PodBuilder
|
|
401
401
|
if absolute_path
|
402
402
|
return podspec_path
|
403
403
|
else
|
404
|
-
pod_path = Pathname.new(podspec_path).relative_path_from(Pathname.new(PodBuilder::
|
404
|
+
pod_path = Pathname.new(podspec_path).relative_path_from(Pathname.new(PodBuilder::basepath)).to_s
|
405
405
|
end
|
406
406
|
end
|
407
407
|
|
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
require 'fourflusher'
|
4
4
|
require 'colored'
|
5
|
+
require 'pathname'
|
5
6
|
|
6
7
|
module PodBuilder
|
7
|
-
def self.
|
8
|
+
def self.build_for_iosish_platform_framework(sandbox, build_dir, target, device, simulator, configuration, deterministic_build, build_for_apple_silicon)
|
8
9
|
raise "\n\nApple silicon hardware still unsupported since it requires to migrate to xcframeworks".red if build_for_apple_silicon
|
9
10
|
|
10
11
|
dsym_device_folder = File.join(build_dir, "dSYM", device)
|
@@ -18,7 +19,7 @@ module PodBuilder
|
|
18
19
|
xcodebuild(sandbox, target_label, device, deployment_target, configuration, deterministic_build, [])
|
19
20
|
excluded_archs = build_for_apple_silicon ? [] : ["arm64"]
|
20
21
|
xcodebuild(sandbox, target_label, simulator, deployment_target, configuration, deterministic_build, excluded_archs)
|
21
|
-
|
22
|
+
|
22
23
|
spec_names = target.specs.map { |spec| [spec.root.name, spec.root.module_name] }.uniq
|
23
24
|
spec_names.each do |root_name, module_name|
|
24
25
|
device_base = "#{build_dir}/#{configuration}-#{device}/#{root_name}"
|
@@ -76,7 +77,173 @@ module PodBuilder
|
|
76
77
|
FileUtils.rm_rf(simulator_framework_lib)
|
77
78
|
end
|
78
79
|
end
|
80
|
+
|
81
|
+
def self.build_for_iosish_platform_lib(sandbox, build_dir, target, device, simulator, configuration, deterministic_build, build_for_apple_silicon)
|
82
|
+
raise "\n\nApple silicon hardware still unsupported since it requires to migrate to xcframeworks".red if build_for_apple_silicon
|
83
|
+
|
84
|
+
device_headers_path = File.join(build_dir, "Headers", device)
|
85
|
+
simulator_headers_path = File.join(build_dir, "Headers", simulator)
|
86
|
+
FileUtils.mkdir_p(device_headers_path)
|
87
|
+
FileUtils.mkdir_p(simulator_headers_path)
|
88
|
+
|
89
|
+
deployment_target = target.platform_deployment_target
|
90
|
+
target_label = target.cocoapods_target_label
|
91
|
+
|
92
|
+
spec_names = target.specs.map { |spec| [spec.root.name, spec.root.module_name] }.uniq
|
93
|
+
|
94
|
+
xcodebuild(sandbox, target_label, device, deployment_target, configuration, deterministic_build, [])
|
95
|
+
spec_names.each do |root_name, module_name|
|
96
|
+
headers_path = "#{sandbox.headers_root.to_s}/Public/#{root_name}"
|
97
|
+
dest_path = "#{device_headers_path}/#{root_name}"
|
98
|
+
FileUtils.mkdir_p(dest_path)
|
99
|
+
|
100
|
+
Dir.glob("#{headers_path}/*") do |path|
|
101
|
+
real_path = Pathname.new(path).realpath
|
102
|
+
FileUtils.cp_r(real_path, dest_path)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
excluded_archs = build_for_apple_silicon ? [] : ["arm64"]
|
107
|
+
xcodebuild(sandbox, target_label, simulator, deployment_target, configuration, deterministic_build, excluded_archs)
|
108
|
+
spec_names.each do |root_name, module_name|
|
109
|
+
headers_path = "#{sandbox.headers_root.to_s}/Public/#{root_name}"
|
110
|
+
dest_path = "#{simulator_headers_path}/#{root_name}"
|
111
|
+
FileUtils.mkdir_p(dest_path)
|
112
|
+
|
113
|
+
Dir.glob("#{headers_path}/*") do |path|
|
114
|
+
real_path = Pathname.new(path).realpath
|
115
|
+
FileUtils.cp_r(real_path, dest_path)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
spec_names.each do |root_name, module_name|
|
120
|
+
simulator_base = "#{build_dir}/#{configuration}-#{simulator}/#{root_name}"
|
121
|
+
simulator_lib = "#{simulator_base}/lib#{module_name}.a"
|
122
|
+
|
123
|
+
device_base = "#{build_dir}/#{configuration}-#{device}/#{root_name}"
|
124
|
+
device_lib = "#{device_base}/lib#{module_name}.a"
|
79
125
|
|
126
|
+
next unless File.file?(device_lib) && File.file?(simulator_lib)
|
127
|
+
|
128
|
+
# Starting with Xcode 12b3 the simulator binary contains an arm64 slice as well which conflict with the one in the device_lib
|
129
|
+
# when creating the fat library. A naive workaround is to remove the arm64 from the simulator_lib however this is wrong because
|
130
|
+
# we might actually need to have 2 separated arm64 slices, one for simulator and one for device each built with different
|
131
|
+
# compile time directives (e.g #if targetEnvironment(simulator))
|
132
|
+
#
|
133
|
+
# For the time being we remove the arm64 slice bacause otherwise the `xcrun lipo -create -output ...` would fail.
|
134
|
+
if `xcrun lipo -info #{simulator_lib}`.include?("arm64")
|
135
|
+
`xcrun lipo -remove arm64 #{simulator_lib} -o #{simulator_lib}`
|
136
|
+
end
|
137
|
+
|
138
|
+
raise "Lipo failed on #{device_lib}" unless system("xcrun lipo -create -output #{device_lib} #{device_lib} #{simulator_lib}")
|
139
|
+
|
140
|
+
device_headers = Dir.glob("#{device_headers_path}/**/*.h")
|
141
|
+
simulator_headers = Dir.glob("#{simulator_headers_path}/**/*.h")
|
142
|
+
device_headers.each do |device_path|
|
143
|
+
simulator_path = device_path.gsub(device_headers_path, simulator_headers_path)
|
144
|
+
if File.exist?(simulator_path)
|
145
|
+
device_content = File.read(device_path)
|
146
|
+
simulator_content = File.read(simulator_path)
|
147
|
+
merged_content = %{
|
148
|
+
#if TARGET_OS_SIMULATOR
|
149
|
+
#{simulator_content}
|
150
|
+
#else
|
151
|
+
#{device_content}
|
152
|
+
#endif
|
153
|
+
}
|
154
|
+
File.write(device_path, merged_content)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
simulator_only_headers = simulator_headers - device_headers.map { |t| t.gsub(device_headers_path, simulator_headers_path) }
|
158
|
+
simulator_only_headers.each do |path|
|
159
|
+
simulator_content = File.read(path)
|
160
|
+
content = %{
|
161
|
+
#if TARGET_OS_SIMULATOR
|
162
|
+
#{simulator_content}
|
163
|
+
#endif
|
164
|
+
}
|
165
|
+
File.write(path, content)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
spec_names = target.specs.map { |spec| [spec.root.name, spec.root.module_name] }.uniq
|
172
|
+
spec_names.each do |root_name, module_name|
|
173
|
+
device_base = "#{build_dir}/#{configuration}-#{device}/#{root_name}"
|
174
|
+
device_lib = "#{device_base}/#{module_name}.framework/#{module_name}"
|
175
|
+
device_dsym = "#{device_base}/#{module_name}.framework.dSYM"
|
176
|
+
device_framework_lib = File.dirname(device_lib)
|
177
|
+
device_swift_header_path = "#{device_framework_lib}/Headers/#{module_name}-Swift.h"
|
178
|
+
|
179
|
+
simulator_base = "#{build_dir}/#{configuration}-#{simulator}/#{root_name}"
|
180
|
+
simulator_lib = "#{simulator_base}/#{module_name}.framework/#{module_name}"
|
181
|
+
simulator_dsym = "#{simulator_base}/#{module_name}.framework.dSYM"
|
182
|
+
simulator_framework_lib = File.dirname(simulator_lib)
|
183
|
+
simulator_swift_header_path = "#{simulator_framework_lib}/Headers/#{module_name}-Swift.h"
|
184
|
+
|
185
|
+
next unless File.file?(device_lib) && File.file?(simulator_lib)
|
186
|
+
|
187
|
+
# Starting with Xcode 12b3 the simulator binary contains an arm64 slice as well which conflict with the one in the device_lib
|
188
|
+
# when creating the fat library. A naive workaround is to remove the arm64 from the simulator_lib however this is wrong because
|
189
|
+
# we might actually need to have 2 separated arm64 slices, one for simulator and one for device each built with different
|
190
|
+
# compile time directives (e.g #if targetEnvironment(simulator))
|
191
|
+
#
|
192
|
+
# For the time being we remove the arm64 slice bacause otherwise the `xcrun lipo -create -output ...` would fail.
|
193
|
+
if `xcrun lipo -info #{simulator_lib}`.include?("arm64")
|
194
|
+
`xcrun lipo -remove arm64 #{simulator_lib} -o #{simulator_lib}`
|
195
|
+
end
|
196
|
+
|
197
|
+
raise "Lipo failed on #{device_lib}" unless system("xcrun lipo -create -output #{device_lib} #{device_lib} #{simulator_lib}")
|
198
|
+
|
199
|
+
# Merge swift headers as per Xcode 10.2 release notes
|
200
|
+
if File.exist?(device_swift_header_path) && File.exist?(simulator_swift_header_path)
|
201
|
+
device_content = File.read(device_swift_header_path)
|
202
|
+
simulator_content = File.read(simulator_swift_header_path)
|
203
|
+
merged_content = %{
|
204
|
+
#if TARGET_OS_SIMULATOR
|
205
|
+
#{simulator_content}
|
206
|
+
#else
|
207
|
+
#{device_content}
|
208
|
+
#endif
|
209
|
+
}
|
210
|
+
File.write(device_swift_header_path, merged_content)
|
211
|
+
end
|
212
|
+
|
213
|
+
# # Merge device framework into simulator framework (so that e.g swift Module folder is merged)
|
214
|
+
# # letting device framework files overwrite simulator ones
|
215
|
+
# FileUtils.cp_r(File.join(device_framework_lib, "."), simulator_framework_lib)
|
216
|
+
# source_lib = File.dirname(simulator_framework_lib)
|
217
|
+
|
218
|
+
# FileUtils.cp_r(source_lib, build_dir)
|
219
|
+
|
220
|
+
# FileUtils.cp_r(device_dsym, dsym_device_folder) if File.exist?(device_dsym)
|
221
|
+
# FileUtils.cp_r(simulator_dsym, dsym_simulator_folder) if File.exist?(simulator_dsym)
|
222
|
+
|
223
|
+
# # Remove frameworks leaving dSYMs
|
224
|
+
# FileUtils.rm_rf(device_framework_lib)
|
225
|
+
# FileUtils.rm_rf(simulator_framework_lib)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
80
247
|
def self.xcodebuild(sandbox, target, sdk='macosx', deployment_target=nil, configuration, deterministic_build, exclude_archs)
|
81
248
|
args = %W(-project #{sandbox.project_path.realdirpath} -scheme #{target} -configuration #{configuration} -sdk #{sdk})
|
82
249
|
supported_platforms = { 'iphonesimulator' => 'iOS', 'appletvsimulator' => 'tvOS', 'watchsimulator' => 'watchOS' }
|
@@ -148,13 +315,12 @@ module PodBuilder
|
|
148
315
|
end
|
149
316
|
project.save
|
150
317
|
end
|
151
|
-
|
152
|
-
|
153
318
|
end
|
154
319
|
|
155
320
|
Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_context, user_options|
|
156
321
|
enable_dsym = user_options.fetch('dsym', true)
|
157
322
|
configuration = user_options.fetch('configuration', 'Debug')
|
323
|
+
uses_frameworks = user_options.fetch('uses_frameworks', true)
|
158
324
|
if user_options["pre_compile"]
|
159
325
|
user_options["pre_compile"].call(installer_context)
|
160
326
|
end
|
@@ -170,14 +336,18 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte
|
|
170
336
|
build_dir.rmtree if build_dir.directory?
|
171
337
|
targets = installer_context.umbrella_targets.select { |t| t.specs.any? }
|
172
338
|
targets.each do |target|
|
173
|
-
case target.platform_name
|
174
|
-
when :ios then PodBuilder::
|
175
|
-
when :osx then PodBuilder::xcodebuild(sandbox, target.cocoapods_target_label, configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
176
|
-
when :tvos then PodBuilder::
|
177
|
-
when :watchos then PodBuilder::
|
339
|
+
case [target.platform_name, uses_frameworks]
|
340
|
+
when [:ios, true] then PodBuilder::build_for_iosish_platform_framework(sandbox, build_dir, target, 'iphoneos', 'iphonesimulator', configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
341
|
+
when [:osx, true] then PodBuilder::xcodebuild(sandbox, target.cocoapods_target_label, configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
342
|
+
when [:tvos, true] then PodBuilder::build_for_iosish_platform_framework(sandbox, build_dir, target, 'appletvos', 'appletvsimulator', configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
343
|
+
when [:watchos, true] then PodBuilder::build_for_iosish_platform_framework(sandbox, build_dir, target, 'watchos', 'watchsimulator', configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
344
|
+
when [:ios, false] then PodBuilder::build_for_iosish_platform_lib(sandbox, build_dir, target, 'iphoneos', 'iphonesimulator', configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
345
|
+
when [:osx, false] then PodBuilder::xcodebuild(sandbox, target.cocoapods_target_label, configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
346
|
+
when [:tvos, false] then PodBuilder::build_for_iosish_platform_lib(sandbox, build_dir, target, 'appletvos', 'appletvsimulator', configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
347
|
+
when [:watchos, false] then PodBuilder::build_for_iosish_platform_lib(sandbox, build_dir, target, 'watchos', 'watchsimulator', configuration, PodBuilder::Configuration.deterministic_build, PodBuilder::Configuration.build_for_apple_silicon)
|
178
348
|
else raise "\n\nUnknown platform '#{target.platform_name}'".red end
|
179
|
-
end
|
180
|
-
|
349
|
+
end
|
350
|
+
|
181
351
|
raise Pod::Informative, 'The build directory was not found in the expected location.' unless build_dir.directory?
|
182
352
|
|
183
353
|
built_count = installer_context.umbrella_targets.map { |t| t.specs.map(&:name) }.flatten.map { |t| t.split("/").first }.uniq.count
|
@@ -226,7 +396,10 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte
|
|
226
396
|
end
|
227
397
|
|
228
398
|
if enable_dsym
|
229
|
-
|
399
|
+
dsym_source = "#{build_dir}/dSYM"
|
400
|
+
if File.directory?(dsym_source)
|
401
|
+
FileUtils.mv(dsym_source, sandbox_root.parent)
|
402
|
+
end
|
230
403
|
else
|
231
404
|
raise "Not implemented"
|
232
405
|
end
|
@@ -4,7 +4,7 @@ require 'cfpropertylist'
|
|
4
4
|
|
5
5
|
%%%use_frameworks%%%
|
6
6
|
|
7
|
-
plugin 'podbuilder-rome', { dsym: true, configuration: '%%%build_configuration%%%', pre_compile: Proc.new { |installer|
|
7
|
+
plugin 'podbuilder-rome', { dsym: true, configuration: '%%%build_configuration%%%', uses_frameworks: %%%uses_frameworks%%%, pre_compile: Proc.new { |installer|
|
8
8
|
|
9
9
|
def set_build_settings(target_name, build_configurations, installer)
|
10
10
|
installer.pods_project.targets.each do |target|
|
data/lib/pod_builder/version.rb
CHANGED
data/pod-builder.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "pod-builder"
|
8
8
|
spec.version = PodBuilder::VERSION
|
9
9
|
spec.authors = ["Tomas Camin"]
|
10
|
-
spec.email = ["tomas.camin@
|
10
|
+
spec.email = ["tomas.camin@adevinta.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Prebuild CocoaPods pods}
|
13
13
|
spec.description = %q{Prebuild CocoaPods pods to make compiling your Xcode projects faster}
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.license = "Apache-2.0"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
-
f.match(%r{^(test|spec|features)/})
|
18
|
+
f.match(%r{^(test|spec|features|Example)/})
|
19
19
|
end
|
20
20
|
spec.bindir = "exe"
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.beta.
|
4
|
+
version: 2.0.0.beta.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Camin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -166,35 +166,13 @@ dependencies:
|
|
166
166
|
version: '0'
|
167
167
|
description: Prebuild CocoaPods pods to make compiling your Xcode projects faster
|
168
168
|
email:
|
169
|
-
- tomas.camin@
|
169
|
+
- tomas.camin@adevinta.com
|
170
170
|
executables:
|
171
171
|
- pod_builder
|
172
172
|
extensions: []
|
173
173
|
extra_rdoc_files: []
|
174
174
|
files:
|
175
175
|
- ".gitignore"
|
176
|
-
- Example/PodBuilder/.gitignore
|
177
|
-
- Example/PodBuilder/.pod_builder/pod_builder
|
178
|
-
- Example/PodBuilder/PodBuilder.json
|
179
|
-
- Example/PodBuilder/Podfile
|
180
|
-
- Example/PodBuilder/Podfile.restore
|
181
|
-
- Example/PodBuilderExample.xcodeproj/project.pbxproj
|
182
|
-
- Example/PodBuilderExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
183
|
-
- Example/PodBuilderExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
|
184
|
-
- Example/PodBuilderExample.xcodeproj/project.xcworkspace/xcuserdata/tomas.xcuserdatad/UserInterfaceState.xcuserstate
|
185
|
-
- Example/PodBuilderExample.xcworkspace/contents.xcworkspacedata
|
186
|
-
- Example/PodBuilderExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
|
187
|
-
- Example/PodBuilderExample/AppDelegate.swift
|
188
|
-
- Example/PodBuilderExample/Assets.xcassets/AppIcon.appiconset/Contents.json
|
189
|
-
- Example/PodBuilderExample/Assets.xcassets/Contents.json
|
190
|
-
- Example/PodBuilderExample/Base.lproj/LaunchScreen.storyboard
|
191
|
-
- Example/PodBuilderExample/Base.lproj/Main.storyboard
|
192
|
-
- Example/PodBuilderExample/Info.plist
|
193
|
-
- Example/PodBuilderExample/ViewController.swift
|
194
|
-
- Example/Podfile
|
195
|
-
- Example/Podfile.lock
|
196
|
-
- Example/Pods-acknowledgements.md
|
197
|
-
- Example/Pods-acknowledgements.plist
|
198
176
|
- Gemfile
|
199
177
|
- LICENSE.txt
|
200
178
|
- README.md
|
@@ -209,9 +187,8 @@ files:
|
|
209
187
|
- lib/pod_builder/command/build.rb
|
210
188
|
- lib/pod_builder/command/build_all.rb
|
211
189
|
- lib/pod_builder/command/clean.rb
|
212
|
-
- lib/pod_builder/command/clear_lldbinit.rb
|
213
190
|
- lib/pod_builder/command/deintegrate.rb
|
214
|
-
- lib/pod_builder/command/
|
191
|
+
- lib/pod_builder/command/generate_lldbinit.rb
|
215
192
|
- lib/pod_builder/command/generate_podspec.rb
|
216
193
|
- lib/pod_builder/command/info.rb
|
217
194
|
- lib/pod_builder/command/init.rb
|
@@ -221,7 +198,6 @@ files:
|
|
221
198
|
- lib/pod_builder/command/switch.rb
|
222
199
|
- lib/pod_builder/command/sync_podfile.rb
|
223
200
|
- lib/pod_builder/command/update.rb
|
224
|
-
- lib/pod_builder/command/update_lldbinit.rb
|
225
201
|
- lib/pod_builder/configuration.rb
|
226
202
|
- lib/pod_builder/core.rb
|
227
203
|
- lib/pod_builder/info.rb
|
File without changes
|