diff --git a/fastlane/Fastfile b/fastlane/Fastfile index efa1fa901..772f27f35 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -86,7 +86,12 @@ platform :ios do lane :xcframework do |options| target_version = "Kingfisher-#{options[:version]}" - + + swift_version = options[:swift_version] || "5.0" + xcode_version = options[:xcode_version] || "15.4" + + xcodes(version: xcode_version, select_for_current_build_only: true) + FileUtils.rm_rf '../build' frameworks = {} @@ -110,7 +115,7 @@ platform :ios do build_settings: { "BUILD_LIBRARY_FOR_DISTRIBUTION" => "YES", "SKIP_INSTALL" => "NO", - "SWIFT_VERSION" => "5.0" + "SWIFT_VERSION" => swift_version } )