Skip to content

An example XCWorkspace that encapsulates an App and the XCFramework it consumes

License

Notifications You must be signed in to change notification settings

chris-grantham/WorkspaceXCFrameworkSpike

Repository files navigation

Swift Version LICENSE

Product Name


Demonstrates how to integrate XCFrameworks and Swift Packages in an application as part of an XCWorkspace.

Features

  • FrameworkA encapsulates FrameworkB as a wrapper
  • Package-FrameworkA exposes FrameworkA as a Swift Package
  • PackageConsumerApp demonstrates use of the Swift Package for FrameworkA
  • XCFrameworkConsumerApp demonstrates use of XCFramework for FrameworkA
  • Automation provided by scripts (post-archive action and build-phase).

Requirements

  • iOS 16.4+
  • Xcode 15.0

Installation

  • Archives and XCFrameworks for FrameworkA and FrameworkB can be generated by selected the appropriate scheme and using the Archive task in Xcode, this will trigger a post-archive run-script to generate the relevant XCFramework.

You can observe how the consumer apps(s) import FrameworkA from either the XCFramework or the Swift Package:

import Foundation
import FrameworkA

Meta

Christopher Grantham – Twitter/X - LinkedIn

Distributed under the APACHE LICENSE, VERSION 2.0. See LICENSE for more information.

https://github.com/chris-grantham/

About

An example XCWorkspace that encapsulates an App and the XCFramework it consumes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published