Module: ProjectGen::XcodeBuild
- Defined in:
- lib/cocoapods-project-gen/gen/build/xcode_build.rb
Class Method Summary collapse
- .archive?(args, project_path, scheme, archive_path) ⇒ Boolean
- .create_xcframework?(args, output_path) ⇒ Boolean
Class Method Details
.archive?(args, project_path, scheme, archive_path) ⇒ Boolean
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/cocoapods-project-gen/gen/build/xcode_build.rb', line 6 def self.archive?(args, project_path, scheme, archive_path) command = %w[archive -showBuildTimingSummary] command += args command += %W[-project #{project_path} -scheme #{scheme} -archivePath #{archive_path}] command += %w[SKIP_INSTALL=NO] results = Results.new output = begin Pod::Executable.execute_command('xcodebuild', command, true) rescue StandardError => e = 'Returned an unsuccessful exit code.' results.error('xcodebuild', ) e. end results.(output) return false unless results.result_type == :error results.print_results true end |
.create_xcframework?(args, output_path) ⇒ Boolean
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/cocoapods-project-gen/gen/build/xcode_build.rb', line 26 def self.create_xcframework?(args, output_path) command = %w[-create-xcframework] command += args command += %W[-output #{output_path}] results = Results.new output = begin Pod::Executable.execute_command('xcodebuild', command, true) rescue StandardError => e = 'Returned an unsuccessful exit code.' results.error('xcodebuild', ) e. end results.(output) return false unless results.result_type == :error results.print_results true end |