lib/motion/project/xcode_config.rb
def strip_args
      args = super
      args << " -x"

      frameworks = targets.select { |t| t.type == :framework }
      required_symbols = frameworks.map(&:required_symbols).flatten.uniq.sort
      unless required_symbols.empty?
        require 'tempfile'
        required_symbols_file = Tempfile.new('required-framework-symbols')
        required_symbols.each { |symbol| required_symbols_file.puts(symbol) }
        required_symbols_file.close
        # Note: If the symbols file contains a symbol that is not present, or
        # is present but undefined (U) in the executable to strip, the command
        # fails. The '-i' option ignores this error.
        args << " -i -s '#{required_symbols_file.path}'"
      end

      args
    end
# Creates a temporary file that lists all the symbols that the application
# (or extension) should not strip.
#
# At the moment these are only symbols that an iOS framework depends on.
#
# @return [String] Extra arguments for the `strip` command.
#
Creates a temporary file that lists all the symbols that the application
(or extension) should not strip.

At the moment these are only symbols that an iOS framework depends on.
Creates a temporary file that lists all the symbols that the application ( or extension ) should not strip . At the moment these are only symbols that an iOS framework depends on .
def strip_args
      args = super
      args << " -x"
      frameworks = targets.select { |t| t.type == :framework }
      required_symbols = frameworks.map(&:required_symbols).flatten.uniq.sort
      unless required_symbols.empty?
        require 'tempfile'
        required_symbols_file = Tempfile.new('required-framework-symbols')
        required_symbols.each { |symbol| required_symbols_file.puts(symbol) }
        required_symbols_file.close
        args << " -i -s '#{required_symbols_file.path}'"
      end
      args
    end
def strip_args args = super args << " -x" frameworks = targets . select { | t | t . type == :framework } required_symbols = frameworks . map ( & :required_symbols ) . flatten . uniq . sort unless required_symbols . empty? require 'tempfile' required_symbols_file = Tempfile . new ( 'required-framework-symbols' ) required_symbols . each { | symbol | required_symbols_file . puts ( symbol ) } required_symbols_file . close args << " -i -s '#{required_symbols_file.path}'" end args end
Creates a temporary file that lists all the symbols that the application
(or extension) should not strip.
Creates a temporary file that lists all the symbols that the application ( or extension ) should not strip .
# Note: If the symbols file contains a symbol that is not present, or # is present but undefined (U) in the executable to strip, the command # fails. The '-i' option ignores this error.
Extra arguments for the `strip` command.
Extra arguments for the ` strip ` command .
String