Class: Pod::Sandbox::FileAccessor
- Inherits:
-
Object
- Object
- Pod::Sandbox::FileAccessor
- Defined in:
- lib/cocoapods-tj/native/file_accessor.rb
Instance Method Summary collapse
Instance Method Details
#dynamic_binary?(binary) ⇒ Boolean
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cocoapods-tj/native/file_accessor.rb', line 7 def dynamic_binary?(binary) @cached_dynamic_binary_results ||= {} return @cached_dynamic_binary_results[binary] unless @cached_dynamic_binary_results[binary].nil? return false unless binary.file? @cached_dynamic_binary_results[binary] = MachO.open(binary).dylib? rescue MachO::MachOError @cached_dynamic_binary_results[binary] = true end |