pilot/lib/pilot/build_manager.rb in fastlane-2.25.0.beta.20170403010018 vs pilot/lib/pilot/build_manager.rb in fastlane-2.25.0
- old
+ new
@@ -1,5 +1,7 @@
+require 'tmpdir'
+
module Pilot
class BuildManager < Manager
def upload(options)
start(options)
@@ -7,13 +9,15 @@
UI.user_error!("No ipa file given") unless config[:ipa]
UI.success("Ready to upload new build to TestFlight (App: #{app.apple_id})...")
+ dir = Dir.mktmpdir
+
platform = fetch_app_platform
package_path = FastlaneCore::IpaUploadPackageBuilder.new.generate(app_id: app.apple_id,
ipa_path: config[:ipa],
- package_path: "/tmp",
+ package_path: dir,
platform: platform)
transporter = FastlaneCore::ItunesTransporter.new(options[:username], nil, false, options[:itc_provider])
result = transporter.upload(app.apple_id, package_path)