class Pod::Sandbox::FileAccessor
Public Instance Methods
dynamic_binary?(binary)
click to toggle source
swift动态库 需要设置为true
# 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