https://github.com/rightpoint/example-xcframework-build
https://github.com/rightpoint/example-xcframework-build
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rightpoint/example-xcframework-build
- Owner: Rightpoint
- License: unlicense
- Created: 2021-01-06T20:53:38.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-12T18:43:36.000Z (over 5 years ago)
- Last Synced: 2025-02-16T00:48:11.585Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This repo supports the article ["Why XCFrameworks Matter"](https://www.rightpoint.com/rplabs/2021/01/why-xcframeworks-matter/) on the Rightpoint Blog. This article illustrates why XCFrameworks are preferred over universal frameworks going forward, and shows how one might build their own using the terminal.
There's a very simple Xcode project in here that builds an iOS framework. `build_framework.sh` shows the process of creating a Universal Framework from this codebase supporting iOS and the iOS Simulator. It also shows the newer, preferred process of assembling an XCFramework that supports iOS, iOS Simulator, Catalyst, and MacOS.
## Usage
1. Open the Xcode project and replace the signing info with your own.
2. Open the terminal at the repo root and run `sh ./build_xcframework.sh`.
The output will be ExampleLibrary.xcframework and ExampleLibrary.framework in the repo root.
## A note from the author
The Xcode project is very, very simple if you want to reproduce it. All I did was make a new iOS Framework project using the "New Project" wizard in Xcode, add my signing info, and add a single Swift file.