cocoapods-imy-bin 0.2.8 → 0.2.9
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a03eee369ef1acbf03c386b400c2f55dcfb02cabd60a02f21ac5ba8392489a9e
|
4
|
+
data.tar.gz: f42893c6d370ed5bbe06b438ae52295ddf3a1dc7d4370246e0e11c3e78e3254a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 665d22d827cef79270ad243b26515338fea285a80ddb3cb462ca88aae5e12ef734ef0cfce7c69301b4843bd3a85eba7c065b1616bc03a326c7c91ac13fbf12b5
|
7
|
+
data.tar.gz: 32c4315f9884e64a7f8afb3283eae3d042aa5844354a098002d659b12aa3c07226a1a03064c850d0cfe4994400a5d0183733a85ce3b184dc640d17b1f50530c8
|
@@ -19,7 +19,7 @@ module Pod
|
|
19
19
|
['--framework-output', '输出framework文件'],
|
20
20
|
['--no-zip', '不压缩静态 framework 为 zip'],
|
21
21
|
['--all-make', '对该组件的依赖库,全部制作为二进制组件'],
|
22
|
-
['--configuration', 'Build the specified configuration (e.g.
|
22
|
+
['--configuration', 'Build the specified configuration (e.g. Release ). Defaults to Debug'],
|
23
23
|
['--env', "该组件上传的环境 %w[dev debug_iphoneos release_iphoneos]"]
|
24
24
|
]
|
25
25
|
end
|
@@ -40,7 +40,7 @@ module Pod
|
|
40
40
|
@all_make = argv.flag?('all-make', false )
|
41
41
|
@verbose = argv.flag?('verbose',true)
|
42
42
|
|
43
|
-
@config = argv.option('configuration', '
|
43
|
+
@config = argv.option('configuration', 'Debug')
|
44
44
|
|
45
45
|
super
|
46
46
|
end
|
@@ -10,7 +10,7 @@ module CBin
|
|
10
10
|
class Builder
|
11
11
|
include Pod
|
12
12
|
#Debug下还待完成
|
13
|
-
def initialize(spec, file_accessor, platform, source_dir, isRootSpec = true, build_model="
|
13
|
+
def initialize(spec, file_accessor, platform, source_dir, isRootSpec = true, build_model="Debug")
|
14
14
|
@spec = spec
|
15
15
|
@source_dir = source_dir
|
16
16
|
@file_accessor = file_accessor
|
@@ -72,14 +72,10 @@ module CBin
|
|
72
72
|
def build_sim_libraries(defines)
|
73
73
|
UI.message 'Building simulator libraries'
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
xcodebuild(defines, "-sdk iphonesimulator ARCHS=\'#{arch}\' ", "build-#{arch}","Debug")
|
80
|
-
end
|
81
|
-
else
|
82
|
-
xcodebuild(defines, "-sdk iphonesimulator ", 'build-simulator', "Release")
|
75
|
+
# archs = %w[i386 x86_64]
|
76
|
+
archs = ios_architectures_sim
|
77
|
+
archs.map do |arch|
|
78
|
+
xcodebuild(defines, "-sdk iphonesimulator ARCHS=\'#{arch}\' ", "build-#{arch}",@build_model)
|
83
79
|
end
|
84
80
|
|
85
81
|
end
|
@@ -96,33 +92,33 @@ module CBin
|
|
96
92
|
def build_static_library_for_ios(output)
|
97
93
|
UI.message "Building ios libraries with archs #{ios_architectures}"
|
98
94
|
static_libs = static_libs_in_sandbox('build') + static_libs_in_sandbox('build-simulator') + @vendored_libraries
|
99
|
-
if is_debug_model
|
95
|
+
# if is_debug_model
|
100
96
|
ios_architectures.map do |arch|
|
101
97
|
static_libs += static_libs_in_sandbox("build-#{arch}") + @vendored_libraries
|
102
98
|
end
|
103
99
|
ios_architectures_sim do |arch|
|
104
100
|
static_libs += static_libs_in_sandbox("build-#{arch}") + @vendored_libraries
|
105
101
|
end
|
106
|
-
end
|
102
|
+
# end
|
107
103
|
|
108
104
|
build_path = Pathname("build")
|
109
105
|
build_path.mkpath unless build_path.exist?
|
110
106
|
|
111
|
-
if is_debug_model
|
107
|
+
# if is_debug_model
|
112
108
|
libs = (ios_architectures + ios_architectures_sim) .map do |arch|
|
113
109
|
library = "build-#{arch}/lib#{@spec.name}.a"
|
114
110
|
library
|
115
111
|
end
|
116
|
-
else
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
end
|
112
|
+
# else
|
113
|
+
# libs = ios_architectures.map do |arch|
|
114
|
+
# library = "build/package-#{@spec.name}-#{arch}.a"
|
115
|
+
# # libtool -arch_only arm64 -static -o build/package-armv64.a build/libIMYFoundation.a build-simulator/libIMYFoundation.a
|
116
|
+
# # 从liBFoundation.a 文件中,提取出 arm64 架构的文件,命名为build/package-armv64.a
|
117
|
+
# UI.message "libtool -arch_only #{arch} -static -o #{library} #{static_libs.join(' ')}"
|
118
|
+
# `libtool -arch_only #{arch} -static -o #{library} #{static_libs.join(' ')}`
|
119
|
+
# library
|
120
|
+
# end
|
121
|
+
# end
|
126
122
|
|
127
123
|
UI.message "lipo -create -output #{output} #{libs.join(' ')}"
|
128
124
|
`lipo -create -output #{output} #{libs.join(' ')}`
|
@@ -166,15 +162,15 @@ module CBin
|
|
166
162
|
defines += @spec.consumer(@platform).compiler_flags.join(' ')
|
167
163
|
|
168
164
|
options = ios_build_options
|
169
|
-
if is_debug_model
|
165
|
+
# if is_debug_model
|
170
166
|
archs = ios_architectures
|
171
167
|
# archs = %w[arm64 armv7 armv7s]
|
172
168
|
archs.map do |arch|
|
173
169
|
xcodebuild(defines, "ARCHS=\'#{arch}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'","build-#{arch}",@build_model)
|
174
170
|
end
|
175
|
-
else
|
176
|
-
xcodebuild(defines,options)
|
177
|
-
end
|
171
|
+
# else
|
172
|
+
# xcodebuild(defines,options)
|
173
|
+
# end
|
178
174
|
|
179
175
|
defines
|
180
176
|
end
|
@@ -193,7 +189,7 @@ module CBin
|
|
193
189
|
# end
|
194
190
|
end
|
195
191
|
|
196
|
-
def xcodebuild(defines = '', args = '', build_dir = 'build',build_model = 'Debug')
|
192
|
+
def xcodebuild(defines = '', args = '', build_dir = 'build', build_model = 'Debug')
|
197
193
|
|
198
194
|
unless File.exist?("Pods.xcodeproj") #cocoapods-generate v2.0.0
|
199
195
|
command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{File.join(File.expand_path("..", build_dir), File.basename(build_dir))} clean build -configuration #{build_model} -target #{target_name} -project ./Pods/Pods.xcodeproj 2>&1"
|
@@ -21,8 +21,11 @@ module CBin
|
|
21
21
|
# 只允许二进制的 specification subspec 比源码的 specification subspec 多
|
22
22
|
#
|
23
23
|
def valid_sources(code_dependencies = false)
|
24
|
-
sources = [
|
25
|
-
|
24
|
+
sources = [code_source]
|
25
|
+
unless code_dependencies
|
26
|
+
sources << binary_source
|
27
|
+
sources.reverse!
|
28
|
+
end
|
26
29
|
sources
|
27
30
|
end
|
28
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-imy-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 苏良锦
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|