pod-builder 1.8.2 → 1.9.0
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 +5 -2
- data/exe/pod_builder +5 -5
- data/lib/pod_builder/command/build.rb +0 -2
- data/lib/pod_builder/command/clear_lldbinit.rb +11 -1
- data/lib/pod_builder/command/update_lldbinit.rb +10 -10
- data/lib/pod_builder/configuration.rb +4 -0
- data/lib/pod_builder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9724d0be2d88cffbc868bd402588a0660ee148fb1f34c86842ecfe66a3f93bce
|
4
|
+
data.tar.gz: 709c3cd1614316aa56a20484e8c41eea4d98dae9901ad3d8e6de05f70306b2ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9088b416155bdf5a0ebba7c12e6d5d9cfde8e262fa01718da5d792cebba1e54b3ac63253d165f3e6978016a3298d6259ddb56a48b70eb4788990d82d253ccf7f
|
7
|
+
data.tar.gz: 8d7ccc8cf5f12462dfd6fc1bc08f8ded4560023028c88236e42a2f7464e4ed61d1b675e92de74394c672aa2d7185b3f103f3c091b1b9835fc5e4a7ee9ca7f910
|
data/README.md
CHANGED
@@ -98,11 +98,14 @@ When using PodBuilder you loose ability to directly access to the source code of
|
|
98
98
|
|
99
99
|
#### `update_lldbinit` command
|
100
100
|
|
101
|
-
In some situations you may already have source code for your prebuilt frameworks (e.g. committed in your repo). In this case there is no need to use the `install_sources`, you can run this command passing the folder that contains the source code that you used to generate the prebuilt frameworks. This will update
|
101
|
+
In some situations you may already have source code for your prebuilt frameworks (e.g. committed in your repo). In this case there is no need to use the `install_sources`, you can run this command passing the folder that contains the source code that you used to generate the prebuilt frameworks. This will update a custom specified `lldbinit` file which will restore the ability to use the debugger and step into the code of your prebuilt dependencies.
|
102
|
+
|
103
|
+
The `lldbinit` should not be autoloaded from Xcode (e.g. should not be placed under ~/.lldbinit-Xcode) because it can cause weird issues with debugging. Instead load the file using a shared breakpoint placed at the beginning loading by invoking a
|
104
|
+
|
102
105
|
|
103
106
|
#### `clear_lldbinit` command
|
104
107
|
|
105
|
-
Run this command to remove PodBuilder's
|
108
|
+
Run this command to remove PodBuilder's customizations from the specified `lldbinit`.
|
106
109
|
|
107
110
|
#### `switch` command
|
108
111
|
|
data/exe/pod_builder
CHANGED
@@ -255,10 +255,10 @@ Usage:
|
|
255
255
|
opts.banner = "
|
256
256
|
Usage:
|
257
257
|
|
258
|
-
$ pod_builder update_lldbinit PATH
|
258
|
+
$ pod_builder update_lldbinit <LLDBINIT_PATH> <PATH>
|
259
259
|
|
260
|
-
Update
|
261
|
-
and debug framework's code.
|
260
|
+
Update LLDBINIT_PATH setting target.source-map in order to be able to step into
|
261
|
+
and debug prebuilt framework's code.
|
262
262
|
|
263
263
|
Specify the PATH of the folder containing the source code of prebuilt frameworks. PATH can be relative to PodBuilder's Framework folder.
|
264
264
|
|
@@ -274,9 +274,9 @@ Usage:
|
|
274
274
|
opts.banner = "
|
275
275
|
Usage:
|
276
276
|
|
277
|
-
$ pod_builder clear_lldbinit
|
277
|
+
$ pod_builder clear_lldbinit <LLDBINIT_PATH>
|
278
278
|
|
279
|
-
Clear
|
279
|
+
Clear LLDBINIT_PATH setting target.source-map PodBuilder's customizations
|
280
280
|
"
|
281
281
|
end,
|
282
282
|
:call => [
|
@@ -5,7 +5,17 @@ module PodBuilder
|
|
5
5
|
module Command
|
6
6
|
class ClearLldbInit
|
7
7
|
def self.call(options)
|
8
|
-
|
8
|
+
|
9
|
+
argument_pods = ARGV.dup
|
10
|
+
|
11
|
+
unless argument_pods.count > 0
|
12
|
+
return -1
|
13
|
+
end
|
14
|
+
unless argument_pods.count == 1
|
15
|
+
raise "\n\nExpecting LLDBINIT_PATH\n\n".red
|
16
|
+
end
|
17
|
+
|
18
|
+
lldbinit_path = File.expand_path(argument_pods[0])
|
9
19
|
lldbinit_content = File.exists?(lldbinit_path) ? File.read(lldbinit_path) : ""
|
10
20
|
|
11
21
|
lldbinit_lines = []
|
@@ -12,8 +12,8 @@ module PodBuilder
|
|
12
12
|
unless argument_pods.count > 0
|
13
13
|
return -1
|
14
14
|
end
|
15
|
-
unless argument_pods.count ==
|
16
|
-
raise "\n\
|
15
|
+
unless argument_pods.count == 2
|
16
|
+
raise "\n\nExpecting LLDBINIT_PATH and a single PATH to the folder containing the prebuilt framework's source code\n\n".red
|
17
17
|
end
|
18
18
|
|
19
19
|
base_path = PodBuilder::basepath("")
|
@@ -21,7 +21,7 @@ module PodBuilder
|
|
21
21
|
podfile_restore_content = File.read(PodBuilder::basepath("Podfile.restore"))
|
22
22
|
app_podfile_content = File.read(PodBuilder::project_path("Podfile"))
|
23
23
|
|
24
|
-
lldbinit_path = File.expand_path(
|
24
|
+
lldbinit_path = File.expand_path(argument_pods[0])
|
25
25
|
lldbinit_content = File.exists?(lldbinit_path) ? File.read(lldbinit_path) : ""
|
26
26
|
status_hash = podfiles_status_hash(app_podfile_content, podfile_restore_content)
|
27
27
|
if lldbinit_content.include?("# <pb_md5:#{base_path}:#{status_hash}")
|
@@ -29,7 +29,7 @@ module PodBuilder
|
|
29
29
|
return 0
|
30
30
|
end
|
31
31
|
|
32
|
-
source_path = argument_pods[
|
32
|
+
source_path = argument_pods[1]
|
33
33
|
|
34
34
|
is_absolute = ["~", "/"].include?(source_path[0])
|
35
35
|
if !is_absolute
|
@@ -64,7 +64,7 @@ module PodBuilder
|
|
64
64
|
is_prebuilt = data.fetch("is_prebuilt", true)
|
65
65
|
|
66
66
|
if original_compile_path.nil?
|
67
|
-
puts "\n\n#{framework_path} was compiled with an older version of PodBuilder, please rebuild it to update
|
67
|
+
puts "\n\n#{framework_path} was compiled with an older version of PodBuilder, please rebuild it to update `#{lldbinit_path}`"
|
68
68
|
next
|
69
69
|
end
|
70
70
|
|
@@ -86,7 +86,7 @@ module PodBuilder
|
|
86
86
|
replace_paths.uniq!
|
87
87
|
|
88
88
|
source_map_lines = replace_paths.flat_map { |t| ["# <pb:#{base_path}>\n", "settings append target.source-map '#{t.split(",").first}' '#{t.split(",").last}'\n"] }
|
89
|
-
rewrite_lldinit(source_map_lines, base_path, app_podfile_content, podfile_restore_content)
|
89
|
+
rewrite_lldinit(lldbinit_path, source_map_lines, base_path, app_podfile_content, podfile_restore_content)
|
90
90
|
|
91
91
|
puts "\n\n🎉 done!\n".green
|
92
92
|
return 0
|
@@ -121,11 +121,11 @@ module PodBuilder
|
|
121
121
|
Digest::MD5.hexdigest(podfile_restore_content + app_podfile_content)
|
122
122
|
end
|
123
123
|
|
124
|
-
def self.rewrite_lldinit(source_map_lines, base_path, app_podfile_content, podfile_restore_content)
|
125
|
-
puts "Writing
|
124
|
+
def self.rewrite_lldinit(lldbinit_path, source_map_lines, base_path, app_podfile_content, podfile_restore_content)
|
125
|
+
puts "Writing #{lldbinit_path}".yellow
|
126
126
|
|
127
|
-
lldbinit_path = File.expand_path('~/.lldbinit-Xcode')
|
128
127
|
FileUtils.touch(lldbinit_path)
|
128
|
+
raise "\n\nDestination file should be a file" unless File.exists?(lldbinit_path)
|
129
129
|
|
130
130
|
lldbinit_lines = []
|
131
131
|
skipNext = false
|
@@ -138,7 +138,7 @@ module PodBuilder
|
|
138
138
|
next
|
139
139
|
elsif line != "\n"
|
140
140
|
if line.include?("settings set target.source-map")
|
141
|
-
raise "\n\n
|
141
|
+
raise "\n\n#{lldbinit_destination_path} already includes a manual `settings set target.source-map`. This is unsupported and you'll have to manually remove that entry\n"
|
142
142
|
end
|
143
143
|
lldbinit_lines.push(line)
|
144
144
|
end
|
@@ -9,6 +9,10 @@ module PodBuilder
|
|
9
9
|
"GCC_OPTIMIZATION_LEVEL" => "s",
|
10
10
|
"SWIFT_OPTIMIZATION_LEVEL" => "-Osize",
|
11
11
|
"SWIFT_COMPILATION_MODE" => "wholemodule",
|
12
|
+
"CODE_SIGN_IDENTITY" => "",
|
13
|
+
"CODE_SIGNING_REQUIRED" => "NO",
|
14
|
+
"CODE_SIGN_ENTITLEMENTS" => "",
|
15
|
+
"CODE_SIGNING_ALLOWED" => "NO"
|
12
16
|
}.freeze
|
13
17
|
DEFAULT_SPEC_OVERRIDE = {
|
14
18
|
"Google-Mobile-Ads-SDK" => {
|
data/lib/pod_builder/version.rb
CHANGED
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: 1.
|
4
|
+
version: 1.9.0
|
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-02-
|
11
|
+
date: 2020-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|