Class: Pod::Sandbox::FileAccessor
- Inherits:
-
Object
- Object
- Pod::Sandbox::FileAccessor
- Defined in:
- lib/cocoapods-tdf-bin/native/file_accessor.rb
Instance Method Summary collapse
-
#dynamic_binary?(binary) ⇒ Boolean
swift动态库 需要设置为true.
Instance Method Details
#dynamic_binary?(binary) ⇒ Boolean
swift动态库 需要设置为true
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cocoapods-tdf-bin/native/file_accessor.rb', line 9 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 |