From 462fff093f8ac4cfdb89d87be68b1c76dcfe58c9 Mon Sep 17 00:00:00 2001 From: Rob Amos Date: Tue, 23 Jun 2020 19:22:32 +1000 Subject: [PATCH] Updated README with information on it works with Xcode 12, and bump version --- README.md | 9 ++++++++- Sources/CreateXCFramework/Command.swift | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e04ce35..d268093 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ swift-create-xcframework is a very simple tool designed to wrap `xcodebuild` and the process of creating multiple frameworks for a Swift Package and merging them into a single XCFramework. +On the 23rd of June 2020, Apple announced Xcode 12 and Swift 5.3 with support for Binary Targets. Though they provide a simplified way to [include Binary Frameworks in your packages][apple-docs], they did not provide a simple way to create your XCFrameworks, with only some [documentation for the long manual process][manual-docs]. swift-create-xcframework bridges that gap. + +**Note:** swift-create-xcframework pre-dates the WWDC20 announcement and is tested with Xcode 11.4 or later, but should work with Xcode 11.2 or later. You can include the generated XCFrameworks in your app manually even without Xcode 12. + ## Usage Inside your Swift Package folder you can just run: @@ -19,6 +23,8 @@ Then for every target or product specified, swift-create-xcframework will: 3. Merge the SDK-specific framework into an XCFramework using `xcodebuild -create-xcframework`. 4. Optionally package it up into a zip file ready for a GitHub release. +This process mirrors the [official documentation][manual-docs]. + ## Choosing what to build Let's use an example `Package.swift`: @@ -156,4 +162,5 @@ Please read the [Contribution Guide](CONTRIBUTING.md) for details on how to cont swift-create-xcframework is available under the MIT license. See the [LICENSE](LICENSE) file for more info. -[apple-docs]: https://developer.apple.com/documentation/swift_packages/distributing_binary_frameworks_as_swift_packages \ No newline at end of file +[apple-docs]: https://developer.apple.com/documentation/swift_packages/distributing_binary_frameworks_as_swift_packages +[manual-docs]: https://help.apple.com/xcode/mac/11.4/#/dev544efab96 \ No newline at end of file diff --git a/Sources/CreateXCFramework/Command.swift b/Sources/CreateXCFramework/Command.swift index d7d86b2..a2344e3 100644 --- a/Sources/CreateXCFramework/Command.swift +++ b/Sources/CreateXCFramework/Command.swift @@ -27,7 +27,7 @@ struct Command: ParsableCommand { Supported platforms: \(TargetPlatform.allCases.map({ $0.rawValue }).joined(separator: ", ")) """, - version: "1.0.5" + version: "1.1.0" )