149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
# File 'lib/cocoapods-tj/command/bin/auto.rb', line 149
def spec_file
@spec_file ||= begin
if @podspec
find_spec_file(@podspec) || @podspec
else
if code_spec_files.empty?
raise Informative, '当前目录下没有找到可用源码 podspec.'
end
spec_file = if @binary
code_spec = Pod::Specification.from_file(code_spec_files.first)
if template_spec_file
template_spec = Pod::Specification.from_file(template_spec_file)
end
create_binary_spec_file(code_spec, template_spec)
else
code_spec_files.first
end
spec_file
end
end
end
|