Skip to content

Commit

Permalink
Add some default value to make xcframework action more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Jun 13, 2024
1 parent 17fec71 commit bb4e6ec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand All @@ -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
}
)

Expand Down

0 comments on commit bb4e6ec

Please sign in to comment.