Skip to content

Commit

Permalink
replaced build_xcframework.sh with fastlane xcframework plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
aboedo committed Aug 26, 2020
1 parent d89a0f1 commit 3765e6f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 36 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ source "https://rubygems.org"

gem 'fastlane'
gem 'cocoapods'
gem 'jazzy'
gem 'jazzy'
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ GEM
xcodeproj (>= 1.8.1, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-create_xcframework (1.0.0)
ffi (1.12.2)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
Expand Down Expand Up @@ -231,6 +232,7 @@ PLATFORMS
DEPENDENCIES
cocoapods
fastlane
fastlane-plugin-create_xcframework
jazzy

BUNDLED WITH
Expand Down
22 changes: 0 additions & 22 deletions bin/build_xcframework.sh

This file was deleted.

31 changes: 18 additions & 13 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,24 @@ platform :ios do
desc "Make build"
lane :make_build do |options|
platforms = [
"appletvos",
"appletvsimulator",
"watchos",
"watchsimulator",
"iphoneos",
"appletvos",
"iphonesimulator",
"macosx"
]
for platform in platforms do
gym(archive_path: "./builds/archives/" + platform,
sdk: platform)
end
'iOS',
'macOS',
'tvOS',
'watchOS'
]
output_directory = './builds/xcframeworks'

create_xcframework(
destinations: platforms,
scheme: 'PurchasesCoreSwift',
xcframework_output_directory: output_directory
)

create_xcframework(
destinations: platforms,
scheme: 'Purchases',
xcframework_output_directory: output_directory
)
end

end
Expand Down
5 changes: 5 additions & 0 deletions fastlane/Pluginfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

gem 'fastlane-plugin-create_xcframework'

0 comments on commit 3765e6f

Please sign in to comment.