pilot/lib/pilot/build_manager.rb in fastlane-2.176.0 vs pilot/lib/pilot/build_manager.rb in fastlane-2.177.0

- old
+ new

@@ -29,11 +29,11 @@ ipa_path: options[:ipa], package_path: dir, platform: platform) transporter = transporter_for_selected_team(options) - result = transporter.upload(fetch_app_id, package_path) + result = transporter.upload(package_path: package_path) unless result UI.user_error!("Error uploading ipa file, for more information see above") end @@ -426,10 +426,17 @@ Spaceship::ConnectAPI.patch_builds(build_id: uploaded_build.id, attributes: attributes) UI.important("Export compliance has been set to '#{uses_non_exempt_encryption}'. Need to wait for build to finishing processing again...") UI.important("Set 'ITSAppUsesNonExemptEncryption' in the 'Info.plist' to skip this step and speed up the submission") - return wait_for_build_processing_to_be_complete + + loop do + build = Spaceship::ConnectAPI::Build.get(build_id: uploaded_build.id) + return build unless build.missing_export_compliance? + + UI.message("Waiting for build #{uploaded_build.id} to process export compliance") + sleep(5) + end else return uploaded_build end end