lib/cocoapods-packager/builder.rb in ty-cocoapods-packager-1.5.6 vs lib/cocoapods-packager/builder.rb in ty-cocoapods-packager-1.5.7
- old
+ new
@@ -13,10 +13,12 @@
@bundle_identifier = bundle_identifier
@exclude_deps = exclude_deps
end
def build(platform, library)
+ UI.puts `xcrun xcodebuild -version`
+
if library
build_static_library(platform)
else
build_framework(platform)
end
@@ -313,10 +315,9 @@
def xcodebuild(defines = '', args = '', build_dir = 'build', target = 'Pods-packager', project_root = @static_sandbox_root, config = @config)
if defined?(Pod::DONT_CODESIGN)
args = "#{args} CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO"
end
- UI.puts 'xcrun xcodebuild -version'
command = "xcrun xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{config} -target #{target} -project #{project_root}/Pods.xcodeproj 2>&1"
output = `#{command}`.lines.to_a
if $?.exitstatus != 0
puts UI::BuildFailedReport.report(command, output)