@@ -216,34 +216,9 @@ def empty_source_files(spec)
216216 spec . attributes_hash [ "resources" ] += bundle_names . map { |n | n +".bundle" }
217217 end
218218
219- # to remove the resurce bundle target.
220- # When specify the "resource_bundles" in podspec, xcode will generate a bundle
221- # target after pod install. But the bundle have already built when the prebuit
222- # phase and saved in the framework folder. We will treat it as a normal resource
223- # file.
224- # https://github.com/leavez/cocoapods-binary/issues/29
225- if spec . attributes_hash [ "resource_bundles" ]
226- bundle_names = spec . attributes_hash [ "resource_bundles" ] . keys
227- spec . attributes_hash [ "resource_bundles" ] = nil
228- spec . attributes_hash [ "resources" ] ||= [ ]
229- spec . attributes_hash [ "resources" ] += bundle_names . map { |n | n +".bundle" }
230- end
231-
232- # to remove the resurce bundle target.
233- # When specify the "resource_bundles" in podspec, xcode will generate a bundle
234- # target after pod install. But the bundle have already built when the prebuit
235- # phase and saved in the framework folder. We will treat it as a normal resource
236- # file.
237- # https://github.com/leavez/cocoapods-binary/issues/29
238- if spec . attributes_hash [ "resource_bundles" ]
239- bundle_names = spec . attributes_hash [ "resource_bundles" ] . keys
240- spec . attributes_hash [ "resource_bundles" ] = nil
241- spec . attributes_hash [ "resources" ] ||= [ ]
242- spec . attributes_hash [ "resources" ] += bundle_names . map { |n | n +".bundle" }
243- end
244-
245219 # to avoid the warning of missing license
246- spec . attributes_hash [ "license" ] = { }
220+ spec . attributes_hash [ "license" ] = { }
221+
247222 end
248223
249224 end
0 commit comments