class StructCore::Processor::TargetLocalLibraryReferenceComponent
Public Instance Methods
process(ref, target_dsl = nil, group_dsl = nil)
click to toggle source
# File lib/spec/processor/target_local_library_reference.rb, line 8 def process(ref, target_dsl = nil, group_dsl = nil) output = nil output = process_xc_ref ref if structure == :spec output = process_spec_ref ref, target_dsl, group_dsl if structure == :xcodeproj && !target_dsl.nil? && !group_dsl.nil? output end
process_spec_ref(ref, target_dsl, group_dsl)
click to toggle source
@param ref [StructCore::Specfile::Target::LocalLibraryReference] @param target_dsl [Xcodeproj::Project::Object::PBXNativeTarget] @param group_dsl [Xcodeproj::Project::Object::PBXGroup]
# File lib/spec/processor/target_local_library_reference.rb, line 25 def process_spec_ref(ref, target_dsl, group_dsl) framework = group_dsl.new_file ref.library_path # Link target_dsl.frameworks_build_phase.add_file_reference framework end
process_xc_ref(ref)
click to toggle source
@param ref [Xcodeproj::Project::Object::PBXFileReference]
# File lib/spec/processor/target_local_library_reference.rb, line 18 def process_xc_ref(ref) StructCore::Specfile::Target::LocalLibraryReference.new(ref.path, nil) end